Train a Classifier
← SkillSafe

Train a classifier on your CSV

Drop a spreadsheet export. Four kinds of model learn to predict one of its columns, and you see how often the best one is right on rows it had not seen.

or drop one here · .csv .tsv .txt
Nothing handy? Try one:

How it works

  1. Drop a file or paste cells. A CSV or TSV export with one row per thing — a customer, a sample, a reading — a header row on top, and one column holding the answer you want predicted.
  2. It picks the column to predict. A column named like an outcome (label, status, churned, species…) or the last column with 2 to 20 values. Change it in the Predict box.
  3. It learns from the other columns. Number columns are scaled; category columns become yes/no flags. ID-like columns, free text and columns with one value are left out.
  4. It trains four kinds of model and checks them fairly. Logistic regression, a decision tree, nearest neighbours and naive Bayes, each scored by 5-fold cross-validation on rows it did not see. The best by F1 wins.
  5. You see where it goes wrong and take the CSV back. The mistakes, the columns that matter, readable rules, and your file with a predicted column — including a guess for every row that had no label.

Questions

Is my file uploaded?
No. The file is read and every model is trained inside your browser tab. Only the optional AI step sends anything: a summary of the scores, the commonest mistakes, the column names with how much each matters, and the cautions the page found, never your rows, and only when you press its button.
How is the accuracy measured?
By stratified k-fold cross-validation: the labelled rows are split into 5 parts with the same mix of classes, each model is trained on 4 parts and scored on the part it did not see, five times over. Every accuracy on the page is on rows the model had not seen.
Which model does it pick?
It tries logistic regression (3 settings), a decision tree (3 depths), nearest neighbours (3, 7 and 15 neighbours) and Gaussian naive Bayes, and keeps the one with the best macro F1, the average F1 over the classes, so a rare class counts as much as a common one. Ties go to the simpler model.
Which column does it predict?
A column named like an outcome (label, class, status, churned, species and so on) or else the last column with 2 to 20 different values. You can pick any other such column in the Predict box; the result updates at once.
What does how much a column matters mean?
For each column, the page shuffles its values among the rows it held back and measures how many accuracy points are lost. A big drop means the model leans on that column. It shows what helps predict, not what causes the outcome.
What happens to rows with no label?
Rows with an empty value in the column to predict are left out of training and checking, and the chosen model, trained on all labelled rows, predicts them. They are marked no label in the download.
Is the winning score a little optimistic?
Slightly. Ten settings are compared on the same check and the best is reported, so its score is a touch higher than you would see on brand-new rows. The gap is small when the models score alike; if one setting is far ahead, try it on fresh data.
How big a file can it take?
Up to 20,000 rows are read. Up to 3,000 labelled rows, spread evenly through the file, are used to compare the models; the winner is then trained on every labelled row. Large files take a few seconds.