- cerebral.tuning.HyperModel.fit(hp, model, *args, **kwargs)[source]
Train the model.
- Parameters:¶
- hp¶
HyperParameters.
- model¶
keras.Model built in the build() function.
- **kwargs
All arguments passed to Tuner.search() are in the kwargs here. It always contains a callbacks argument, which is a list of default Keras callback functions for model checkpointing, tensorboard configuration, and other tuning utilities. If callbacks is passed by the user from Tuner.search(), these default callbacks will be appended to the user provided list.
- Returns:¶
A History object, which is the return value of model.fit(), a dictionary, or a float.
If return a dictionary, it should be a dictionary of the metrics to track. The keys are the metric names, which contains the objective name. The values should be the metric values.
If return a float, it should be the objective value.
Last update:
Feb 09, 2023