Source code for ezyrb.approximation.approximation

"""Module for the Approximation abstract class"""

from abc import ABC, abstractmethod


[docs]class Approximation(ABC): """ The abstract `Approximation` class. All the classes that implement the input-output mapping should be inherited from this class. """
[docs] @abstractmethod def fit(self, points, values): """Abstract `fit`"""
[docs] @abstractmethod def predict(self, new_point): """Abstract `predict`"""