Model Training
Training an Audio model
Set the training options for your Audio learning block, start training and read the progress.
Try it in StudioOn this page
Goal
By the end of this page you will have a trained Audio model.
Before you start
- Your impulse is saved, with one processing block and one learning block.
- You have selected Generate features on the processing block page. Training uses those features.
Steps
- In the left menu, under Impulse design, select your learning block (for example Classification).
- Check the settings. The defaults depend on the block:
| Setting | Classification | Transfer Learning | Anomaly Detection |
|---|---|---|---|
| Number of training cycles | 5 | 50 | 50 |
| Learning rate | 0.005 | 0.001 | 0.001 |
| Batch size | 32 (under Advanced training settings) | 32 (fixed) | 32 (fixed) |
| Validation split | 0.2 (under Advanced training settings) | 0.2 | 0.2 (fixed) |
| Training processor | CPU or GPU | CPU or GPU | CPU (always) |
| Anomaly threshold | — | — | 0.15 |
- Select Start Training.
- Watch the training output. Studio shows the job status and, when it finishes, the result (accuracy for Classification and Transfer Learning, reconstruction loss for Anomaly Detection).
What happens during training
- Studio sets aside part of the training data for validation (20 % by default). Validation clips come from different recordings than the training clips.
- The model trains for up to the number of cycles you chose. If the validation result stops improving for 20 cycles, training stops early and keeps the best version.
- When training finishes, Studio saves the model as Float32 and as a smaller INT8 version, and scores both. See Choosing Float32 or INT8.
Result
The learning block page shows the result, and the Evaluation, Model testing and Live classification pages can now use the model. You can follow and cancel jobs on the Jobs page.
Retrain after adding data
When you add more recordings, select Retrain model in the left menu. Studio trains again with the same settings as your last run. Run Generate features again first if you changed the processing block settings.
Tips
- Accuracy stays low: record more clips per label, check that labels are right, and add a noise label.
- Training accuracy is high but validation is low: the model is memorising. Add more varied recordings or use fewer training cycles.
- Save a project version before big changes. See Project versions and jobs.