2022-03-30 16:04:13 +02:00

10 lines
229 B
Python

class EstimatorAdapter:
def __init__(self, estimator):
self.estimator = estimator
def predict(self, batch):
return self.estimator(batch)
def __call__(self, batch):
return self.predict(batch)