11 lines
184 B
Python
11 lines
184 B
Python
import abc
|
|
|
|
|
|
class EstimatorAdapter(abc.ABC):
|
|
def __init__(self, estimator):
|
|
self.estimator = estimator
|
|
|
|
@abc.abstractmethod
|
|
def predict(self, batch):
|
|
pass
|