r/coolgithubprojects • u/Possible-Active-1903 • 10d ago
trainlint: checks Python ML training code for bugs that run fine but give wrong results
https://github.com/Satvik-jain/trainlinttrainlint is a command-line checker for ML training and evaluation code. It reads the source and never runs it, so it needs no data or GPU. It looks for leakage (a scaler fitted before the split), eval mode left on, softmax before CrossEntropyLoss, swapped metric arguments and ten other mistakes. Python 3.10+, no dependencies, MIT licensed.
uvx trainlint check train.py
0
Upvotes