tf.keras.wrappers.scikit_learn.KerasClassifier

Implementation of the scikit-learn classifier API for Keras.

Methods

check_params

View source

Checks for user typos in params.

Arguments
params dictionary; the parameters to be checked

Raises
ValueError if any member of params is not a valid argument.

filter_sk_params

View source

Filters sk_params and returns those in fn's arguments.

Arguments
fn arbitrary function
override dictionary, values to override sk_params

Returns
res dictionary containing variables in both sk_params and fn's arguments.

fit

View source

Constructs a new model with build_fn & fit the model to (x, y).

Argume