deephyper.predictor.tf_keras2.TFKeras2Predictor

deephyper.predictor.tf_keras2.TFKeras2Predictor#

class deephyper.predictor.tf_keras2.TFKeras2Predictor(model: tf_keras.Model)[source]#

Bases: Predictor

Represents a frozen TensorFlow/Keras2 model that can only predict.

Methods

post_process_predictions

pre_process_inputs

predict

Predicts the target for the inputs.

predict(X)[source]#

Predicts the target for the inputs.

Parameters:

X (np.ndarray) – the inputs.

Returns:

the predicted target.

Return type:

np.ndarray