Skip to content

predictionfunction

predictionfunction

Abstract class for prediction functions

Classes

PredictionFunction

Bases: ABC

Abstract class for prediction functions

Functions
predict abstractmethod
predict(model, data_x)

Predicts the given data with the given model

Source code in niceml/mlcomponents/predictionfunction/predictionfunction.py
@abstractmethod
def predict(self, model, data_x) -> Any:
    """Predicts the given data with the given model"""
    raise NotImplementedError