Skip to content

Model Training

Training an Audio model

Set the training options for your Audio learning block, start training and read the progress.

Try it in Studio
On 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

  1. In the left menu, under Impulse design, select your learning block (for example Classification).
  2. Check the settings. The defaults depend on the block:
SettingClassificationTransfer LearningAnomaly Detection
Number of training cycles55050
Learning rate0.0050.0010.001
Batch size32 (under Advanced training settings)32 (fixed)32 (fixed)
Validation split0.2 (under Advanced training settings)0.20.2 (fixed)
Training processorCPU or GPUCPU or GPUCPU (always)
Anomaly threshold——0.15
  1. Select Start Training.
  2. 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.

What next?