deephyper.predictor.tf_keras2.TFKeras2PredictorFileLoader#

class deephyper.predictor.tf_keras2.TFKeras2PredictorFileLoader(path_predictor_file: str)[source]#

Bases: PredictorFileLoader

Loads a predictor from a file for the TensorFlow/Keras2 backend.

Parameters:

path_predictor_file (str) – the path to the predictor file.

Methods

find_predictor_files

Finds the predictor files in a directory given a specific extension.

load

Loads a predictor.

static find_predictor_files(path_directory: str, file_extension: str = 'keras') List[str][source]#

Finds the predictor files in a directory given a specific extension.

Parameters:
  • path_directory (str) – the directory path.

  • file_extension (str, optional) – the file extension. Defaults to "keras".

Returns:

the list of predictor files found in the directory.

Return type:

List[str]

load() TFKeras2Predictor[source]#

Loads a predictor.

Returns:

the loaded predictor.

Return type:

Predictor