In the docs from keras-tuner's SklearnTuner, one can find:
"Note that for this Tuner, the objective for the Oracle should always be set to Objective('score', direction='max')"
When setting the argument "scoring=metrics.make_scorer(metrics.mean_squared_error)" (which is equivalent to "neg_mean_squared_error" according to the docs from Sklearn), keras-tuner prints the "Best score So Far" after every trial. For these values, I expect to find solely negative values (in order to maximize the scoring function). However, what I end up with is only positive scores. I am curious to the logic behind this?
My keras-tuner Tuner class currently looks like this:
tuner = kt.tuners.SklearnTuner(
oracle=kt.oracles.BayesianOptimizationOracle(
objective=kt.Objective('score', 'max'),
hypermodel=self.build_model,
scoring=metrics.make_scorer(metrics.mean_squared_error),
cv=KFold(5),)