K-fold Cross-Validation
Partitions utterances intok subsets, trains on k-1 folds, and tests on the remaining fold — repeated until all utterances are tested at least once.
K-fold Cross-Validation isn’t available for Few-shot and Zero-shot models.
Minimum requirements: 5 utterances per intent, 250 utterances total.
Configure K-fold
Set thek parameter at NLU Config > Engine Tuning > K Fold (value between 2 and 10; default: 2).
Generate the Report
- Go to Natural Language > Training.
- Click Validate Model > K-fold Cross-Validation.
- Click Generate (first time) or Re-generate (subsequent runs).
Metrics
Additional context:
- Total Utterances — total training corpus size.
- Number of Intents — intents in the app.
- Number of Folds — k value used.
- Test/Training Data per Fold — utterances in each subset.
Export
Click the Export icon on the K-fold page → Proceed. File format:Kfold_BotName_YYYYMMDDHHmmSS.csv.
Confusion Matrix
Visualizes how well trained utterances match their intended tasks. Each dot represents an utterance, plotted in one of four quadrants per task.Requires at least one utterance. Only includes intents with utterances in the training dataset.
Quadrants
Reading the Graph
- Utterances in the top of True quadrants — best match quality.
- Utterances in False quadrants — require immediate attention.
- An utterance in the True Positive quadrant of multiple tasks — overlapping intents; must be resolved.
Edit and Reassign Utterances
- Click a quadrant to open the quadrant view.
- Click the Edit icon on an utterance row.
- Update the text or reassign to a different intent using Expected Task.