wandb.keras.WandbCallback
Last updated
Last updated
WandbCallback
automatically integrates keras with wandb.
WandbCallback
will automatically log history data from any metrics collected by keras: loss and anything passed into keras_model.compile()
.
WandbCallback
will set summary metrics for the run associated with the "best" training step, where "best" is defined by the monitor
and mode
attribues. This defaults to the epoch with the minimum val_loss
. WandbCallback
will by default save the model associated with the best epoch
.
WandbCallback
can optionally log gradient and parameter histograms.
WandbCallback
can optionally save training and validation data for wandb to visualize.
Arguments | |
| (str) name of metric to monitor. Defaults to |
| (str) one of { |
| True - save a model when monitor beats all previous epochs False - don't save models |
| (boolean) if True save model graph to wandb (default to True). |
| (boolean) if True, then only the model's weights will be saved ( |
| (boolean) if True save histograms of the model's layer's weights. |
| (boolean) if True log histograms of the training gradients |
| (tuple) Same format |
| (tuple) Same format |
| (generator) a generator that returns validation data for wandb to visualize. This generator should return tuples |
| (int) if |
| (list) If you are visualizing your data with wandb this list of labels will convert numeric output to understandable string if you are building a multiclass classifier. If you are making a binary classifier you can pass in a list of two labels ["label for false", "label for true"]. If |
| (int) the number of predictions to make for visualization each epoch, max is 100. |
| (string) type of the model input to help visualization. can be one of: ( |
| (string) type of the model output to help visualziation. can be one of: ( |
| (boolean) if True, save a Table containing validation data and the model's preditions at each epoch. See |
| ([float, float, float]) if the input or output is a segmentation mask, an array containing an rgb tuple (range 0-1) for each class. |
| (integer) if None, callback will log every epoch. If set to integer, callback will log training metrics every |
| (string) if None, no extra summary metrics will be saved. If set to a string, the monitored metric and epoch will be prepended with this value and stored as summary metrics. |
| ([wandb.data_types._TableLinkMixin]) an ordered list of index keys to associate with each validation example. If log_evaluation is True and |
| (Callable) a function to apply to the validation data, commonly used to visualize the data. The function will receive an |
| (Callable) same as |
| (bool) Determines if |
set_model
set_params