fix KerasRegressor score function
KerasRegressor score function returned the loss (that one would like aim to minimise) and not a score (that one would like to maximise).
@@ -330,5 +330,5 @@ class KerasRegressor(BaseWrapper):
kwargs = self.filter_sk_params(Sequential.evaluate, kwargs)
loss = self.model.evaluate(x, y, **kwargs)
if isinstance(loss, list):
- return loss[0]
- return loss
+ return -loss[0]
+ return -loss
