Skip to main content
The metric scores every experiment, picks the best one and builds the ensemble. Choose the one your predictions will be judged by.

How the metric is chosen

Claude asks what you will do with the predictions and offers metrics that fit. It recommends ROC AUC for two classes, log loss for more classes and RMSE for regression, unless you or your notes name the metric you are judged by, such as a competition’s. From a shell, pass --metric:

Built-in metrics

Details that change the result

  • Average precision treats the second class in sorted order as “yes”: 1 of {0, 1}, "yes" of {"no", "yes"}. If the class you care about sorts first, Claude writes a copy of the CSV with the target recoded.
  • MAE is scored on the median of TabPFN’s predicted distribution by default. The median minimizes absolute error. An experiment may try the mean.
  • QWK turns the task into a regression on the grade. Claude recommends fitting cut points between the grades; without them, predictions round to the nearest grade. Use QWK for whole-number grades in a fixed order, such as ratings 1 to 8.
  • Accuracy, F1 and log loss can get an optional fitted step before scoring, if you ask for one. See Post-processing.

A metric of your own

When none of these fits, such as a cost per error or recall at a fixed threshold, write a metric file. See Custom metrics.
The metric is locked once the session starts. A different metric needs a new session.