Generates probability or class probability predictions for the input samples.

predict_proba(object, x, batch_size = 32, verbose = 0)

predict_classes(object, x, batch_size = 32, verbose = 0)

Arguments

object

Keras model object

x

Input data (vector, matrix, or array)

batch_size

Integer

verbose

Verbosity mode, 0 or 1.

Details

The input samples are processed batch by batch.

See also

Other model functions: compile, evaluate_generator, evaluate, fit_generator, fit, get_config, get_layer, keras_model_sequential, keras_model, pop_layer, predict.keras.engine.training.Model, predict_generator, predict_on_batch, summary.keras.engine.training.Model, train_on_batch