Abstract class for prediction functions
Classes
PredictionFunction
Bases: ABC
Abstract class for prediction functions
Functions
predict
abstractmethod
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
|