In Hyperband, the objective function evaluates the metrics defined in the
compile function. I added the mean_squared_error metric while building the
model, and after making these changes, the code works as expected. Please
refer to this gist for the implementation.