I defined a Sklearn Estimator as:
class ExactSolver(BaseEstimator): def __init__(self): pass def fit(self, X, y=None): self.weight = np.