I've built a model using Keras for solving the regression problem. I want to perform a hyperparameter optimization on this model. As metrics I used val_mean_absolute_error
. In the example, only classification problem is covered (available on https://github.com/maxpumperla/hyperas)
validation_acc = np.amax(result.history['val_acc'])
print('Best validation acc of epoch:', validation_acc)
return {'loss': -validation_acc, 'status': STATUS_OK, 'model': model}
How to adapt this code for a regression problem (for using val_mean_absolute_error
as a metrics)?