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
Finds the predictor files in a directory given a specific extension.
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.
- load() TFKeras2Predictor [source]#
Loads a predictor.
- Returns:
the loaded predictor.
- Return type: