2022-03-29 23:56:22 +02:00

7 lines
162 B
Python

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