NLU Model training

Training a model might be necessary in the following cases:

  • You have created a custom domain model.

  • You have added your own custom data.

The training process will expand the model’s understanding of your own data using Machine Learning.

You can also read more about training best practices.

If you have added new custom data to a model that has already been trained, additional training is required.

To train a model, you need to define or upload at least two intents and at least five utterances per intent. To ensure an even better prediction accuracy, enter or upload ten or more utterances per intent.

Deployed NLU models cannot be trained or edited in any way. They are locked and available in the view-only mode.

To train a model:

  1. Navigate to NLU → NLU Models section.

  2. Select a model and click on it. The model drill-down page opens.

  3. Select the Train tab.

    • If the model requires training, a yellow mark is shown next to the Train tab and the Train button is green.

       

    • If the yellow mark is absent and the Train button is greyed out, the model has already been trained.

       

  4. Click the Train button, if it is green.

  5. The training starts. The model status is set to Working.

     

  6. When the training is completed, the model status is set to Ready. Depending on the training data scope, the training can take up to several minutes.


Confidence Threshold

The confidence threshold defines the confidence level needed to assign intent to an utterance for the Machine Learning part of your model (if you’ve trained it with your own custom data). By default, the confidence level is 0.7. You can change this value and set the confidence threshold that suits you based on the Quantity and Quality of the data you’ve trained it with.

The more data you train your model with, the more accurate it will be, so a more loose Confidence Threshold (around 0.7 - 0.9) can be used. For models with a small volume of training data, a higher Confidence Threshold must be used to avoid false predictions.

To change the confidence threshold:

  1. Navigate to NLU → NLU Models section.

  2. Select a model from the list of available models and click on it. You are now in the model drill-down view.

  3. Go to the Settings tab.

     

  4. Select Confidence level and set the needed value.

     

  5. Click Save.

Downloading your NLU model’s custom data

To download your custom data as a CSV file:

  1. Navigate to NLU → NLU Models section.

  2. Select a model from the list of available models and click on it to open it.

  3. Click the Options menu icon next to the model status.

  4. Select Download Custom Training data.

Exporting your NLU model

You can export your NLU model as a ZIP file. The exported ZIP file can be directly deployed under Deployments as shown below. For more information, check out Deploying a model.

To export your NLU model, proceed as follows:

  1. Navigate to NLU → NLU Models section.

  2. Select a model from the list of available models and click on it to open.

  3. Click the Options menu icon next to the model status.

  4. Select Export.

Alternatively, you can export your model from the NLU models section as shown below: