Skip to main content
Skip table of contents

Training an NLU model

NLU Model training

Training a model might be necessary in the following cases:

  • You have added your own custom data to a model, or

  • You have created a custom domain model.

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.

Training a model

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.

      2024-02-14_19-24-51.png

       

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

      2024-02-14_19-25-19.png

       

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

  5. The training starts. The model status changes to Working.

    2024-02-14_19-25-46.png

     

  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.

2024-02-14_19-26-33.png


Setting up Confidence Level

The confidence level defines the accuracy 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 level 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 level (around 0.7 - 0.9) can be used. For models with a small volume of training data, a higher Confidence level must be used to avoid false predictions.

To change the confidence threshold, proceed as follows:

  1. Navigate to NLU → NLU Models section.

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

  3. Go to the Settings tab.

     

  4. Set the needed Confidence level value.

     

  5. Click Save.

Setting up In-Domain Probability

The in-domain probability threshold lets you decide how strict your model is with unseen data that are marginally in or out of the domain. Setting the in-domain probability threshold closer to 1 will make your model very strict to such utterances but with the risk of mapping an unseen in-domain utterance as an out-of-domain one. On the contrary, moving it closer to 0 will make your model less strict but with the risk of mapping a real out-of-domain utterance as an in-domain one.

To change the in-domain probability threshold, proceed as follows:

  1. Navigate to NLU → NLU Models section.

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

  3. Go to the Settings tab.

4. Set the needed In-Domain Probability value.

5. Click Save.

Downloading custom training data

To download your custom training 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.

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

  4. Select Download Custom Training Data.

    2024-02-14_19-27-09.png

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.