trainlint
An offline checker for machine learning code errors that run but distort training results
What does it do?
It parses Python files, matches calls by name, and reports findings. It returns exit code 0 when there are no findings, 1 when there are findings, and 2 for usage errors, making it useful in automation. It can also install 4 agent skills in a specified folder. Checks run without a network connection or GPU; it does not perform type inference or analysis across files.
Key features
- Checks for data leakage and mistakes involving training and evaluation modes, loss functions, and metrics
- Checks files by matching call names in the Python syntax tree
- Returns exit codes 0, 1, and 2 according to the check result
- Installs 4 agent skills in a selected folder
- Runs offline without a network connection or GPU