$ ./guess_the_languageAI & ML
AI & ML · medium · #22

What does scores contain?

scores = cross_val_score(model, X, y, cv=5)
  1. 5 scores, one per held-out fold
  2. 1 score, the average of all 5 runs
  3. 5 trained models for reuse
  4. A 5x5 confusion matrix
Each fold is held out once while the model trains on the rest, yielding one score per fold.
Play AI & ML ▸