deephyper.predictor.PredictorFileLoader#

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

Bases: PredictorLoader

Represents a file loader for a predictor.

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) List[str][source]#

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

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

  • file_extension (str) – the file extension.

Returns:

the list of predictor files found in the directory.

Return type:

List[str]

abstract load() Predictor#

Loads a predictor.

Returns:

the loaded predictor.

Return type:

Predictor