Predictor

class enflow.models.predictor.Predictor[source]

Bases: Model, ABC

load_data()[source]

Load data used for training the predictor.

This is a recommended method, but not mandatory. Subclasses may override it.

create_features()[source]

Create features from the loaded data used for training the predictor. Load data used for training sthe predictor.

This is a recommended method, but not mandatory. Subclasses may override it.

train()[source]

Train the predictor from the training data.

This is a recommended method, but not mandatory. Subclasses may override it.

abstract predict(input)[source]

Make a prediction based on the input data.

This is a mandatory method that must be implemented by subclasses

Parameters:

input: Data on which prediction is to be made.

Returns:

prediction: The output of the model.

copy(name=None)[source]

Create a copy of the predictor.