ARBIMETRA LAB
Model Evaluation Toolkit
Evaluates a model with a train/test split and cross-validation, using metrics that match the task.
What it does
Evaluates a model with a train/test split and cross-validation, using metrics that match the task.
Use it to compare models on equal terms.
Data you need
- Target
- Numeric features
Supported data: Numeric, Categorical. Level: Intermediate.
Formula and method
F1 = 2PR/(P+R) · RMSE = √[Σ(y−ŷ)²/n]
The data are split once using a fixed seed and stratified for classification. Cross-validation runs inside the training set, and final metrics are computed only on the held-out test rows, next to a no-skill baseline option.
Assumptions
- Future data resemble the training data
- Rows are independent
Input checks
- At least 30 complete rows
- Test set held back from training
- Fixed random seed
How to read the result
Compare with the baseline model on the same split.
Worked example
Illustrative run on Fisher iris measurements. These figures are the actual output of this model on that example, and they say nothing about your own data.
- Test accuracy = 0.9211 against a majority-class baseline of 0.3421; F1 = 0.923.
- The model is better than always predicting the most common class on this test set.
Limitations
- One split gives one estimate
Numerical validation
Validated 16 of 16 automated checks passed, including numerical results, invalid input, missing values, small samples, constant variables, charts and the interpretation text.
| Check | Reference | Result | Abs. error | Tolerance | Source |
|---|---|---|---|---|---|
| Accuracy by hand | 0.71052632 | 0.71052632 | 0.0e+0 | 1e-12 | Independent NumPy calculation |
| F1 by hand | 0.59259259 | 0.59259259 | 1.1e-16 | 1e-12 | Independent NumPy calculation |
| AUC by pair counting | 0.79538462 | 0.79538462 | 1.1e-16 | 1e-12 | Independent NumPy calculation |
| Baseline equals the majority share | 0.65789474 | 0.65789474 | 0.0e+0 | 1e-12 | Independent NumPy calculation |
Computed with python 3.13.2, numpy 2.2.5, scipy 1.14.1, pandas 2.3.3, statsmodels 0.14.4, scikit-learn 1.7.0, in your browser. A passing check confirms the listed comparison only. It does not make any result suitable for your data, and it is not a claim of equivalence with other statistical software.
Questions
Which metric should I use?
For balanced classes, accuracy is reasonable. For imbalanced classes, use precision, recall, F1 and AUC. For regression, use RMSE and MAE.
ARBIMETRA LAB is an educational and research tool. Results should be checked by the researcher and are not professional advice.
