Documentation Index
Fetch the complete documentation index at: https://wb-21fd5541-style-guide-models-integrations-20260527-015516.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
This documentation is for fastai v1.
If you use the current version of fastai, see the fastai page.
WandbCallback only when starting training. In this case, you must instantiate it.
Example code
The following examples show how the integration works:- Classify Simpsons characters: A demo to track and compare fastai models. See the step-by-step guide.
- Semantic segmentation with fastai: Optimize neural networks on self-driving cars.
Options
TheWandbCallback() class supports several options:
| Keyword argument | Default | Description |
|---|---|---|
learn | N/A | The fast.ai learner to hook. |
save_model | True | Save the model if it’s improved at each step. It also loads the best model at the end of training. |
mode | auto | min, max, or auto. How to compare the training metric specified in monitor between steps. |
monitor | None | Training metric used to measure performance for saving the best model. None defaults to validation loss. |
log | gradients | gradients, parameters, all, or None. Losses and metrics are always logged. |
input_type | None | images or None. Used to display sample predictions. |
validation_data | None | Data used for sample predictions if input_type is set. |
predictions | 36 | Number of predictions to make if input_type is set and validation_data is None. |
seed | 12345 | Initialize random generator for sample predictions if input_type is set and validation_data is None. |