Project record
Dataset Size and ML Model Families
UFSC · Lab de Simulação CFD
2026 - Present
Abstract
Dataset Size and ML Model Families — Undergraduate research at UFSC's CFD Simulation Lab. The question: is a model's performance a property of the algorithm alone, or does it depend on how much data is available to train it? To answer it, I gradually shrink the training set and measure how the error of each model…
Keywords: Machine Learning · Python · Avaliação Estatística
| Period | 2026 - Present |
|---|---|
| Made at | UFSC · Lab de Simulação CFD |
| Stack | Machine Learning · Python · Avaliação Estatística |
1Description
Dataset Size and ML Model Families
Undergraduate research at UFSC's CFD Simulation Lab. The question: is a model's performance a property of the algorithm alone, or does it depend on how much data is available to train it? To answer it, I gradually shrink the training set and measure how the error of each model family evolves.
Motivation
The context is predictive maintenance of machining centres in AllConnect, a Grupo Alltech product that connects AI to CNC machines. The practical question is which model family to pick when data is scarce. Formula 1 2024 is the open dataset I use to study that question rigorously.
The study
The data is the 2024 Formula 1 season (FastF1), with about 18 thousand training laps across 24 Grands Prix, and the target is lap time. I start from the maximum N and remove slices into nested subsets (100%, 80%, 60%, 40%, 20%), so that between one scale and the next only the amount of information changes. At each scale I train 11 model families: linear and polynomial regression, decision tree, random forest, three kinds of boosting (Gradient Boosting, XGBoost, LightGBM), KNN, SVR, Gaussian process and a neural network.
The evaluation protocol
The protocol follows that of a previous paper from the group: LOOCV, bootstrap confidence intervals, Friedman test, Wilcoxon with Bonferroni correction, Cohen's d and Spearman correlation between the rankings at each scale. Spearman answers whether the order among families changes when data shrinks. Repetitions with different seeds separate the effect of N from the effect of the draw.
The pipeline
I wrote the pipeline with the same interface for every family, scalers and encoders fitted on the training set only, a frozen test set, and hyperparameter search by cross-validation inside each fit. It has automated tests for the invariants and documentation of the maths behind each metric.
What the study has shown so far
- Different metrics tell different stories. At maximum N, KNN is 4th by MAE and second-to-last by RMSE. MAE says who gets the typical lap right, RMSE says who avoids the disaster, which is why I report both.
- Library defaults distort the comparison. SVR's default
epsilongives an MAE of 4.7 s against 0.66 s with a tuned value, and Gradient Boosting with default settings has twice the error of XGBoost (1.48 s vs 0.61 s). Comparing families at factory defaults measures each library's choice of defaults, not the method, so each family gets its own grid. - Random splits inflate the metrics. With a per-lap random split, about 93% of test laps have a neighbouring lap from the same driver in the training set, and part of the result becomes memorisation. The pipeline can split by driver, which is a harder test.
- Global R² is misleading. With all 24 GPs together, much of the explained variance comes from knowing which track it is, so I compute R² within each GP.
Results are partial and the study is ongoing.
2References
No external references catalogued for this project.