Train ML models with scikit-learn, PyTorch, TensorFlow. Use for classification/regression, neural networks, hyperparameter tuning, or encountering overfitting, underfitting, convergence issues.
Install with Tessl CLI
npx tessl i github:secondsky/claude-skills --skill ml-model-training94
Does it follow best practices?
Validation for skill structure
Data splitting and preprocessing pipeline
70/15/15 split
100%
100%
Scaler fit on train only
100%
100%
No all-data fitting
50%
100%
Categorical encoding
100%
100%
Feature scaling applied
100%
100%
Random seed set
100%
100%
Validation set present
100%
100%
Correct pandas loading
100%
100%
Feature/target separation
100%
100%
Without context: $0.3114 · 1m 4s · 14 turns · 15 in / 3,787 out tokens
With context: $0.8644 · 2m 7s · 26 turns · 27 in / 6,936 out tokens
Class imbalance handling and hyperparameter tuning
Class imbalance addressed
100%
100%
SMOTE or class weights
100%
100%
GridSearch/CV on training only
100%
100%
Test set reserved for final eval
100%
100%
MLflow tracking
100%
100%
MLflow run context
100%
100%
Classification report
100%
100%
AUC-ROC reported
100%
100%
Cross-validation used
100%
100%
Hyperparameters documented
100%
100%
Without context: $0.9018 · 3m 59s · 27 turns · 26 in / 12,008 out tokens
With context: $0.7613 · 3m 23s · 29 turns · 77 in / 8,851 out tokens
PyTorch neural network training loop
BatchNorm in hidden layers
100%
100%
Dropout in hidden layers
100%
100%
Adam optimizer used
100%
100%
ReduceLROnPlateau scheduler
100%
100%
Early stopping implemented
100%
100%
Best model checkpoint saved
70%
100%
DataLoader used
100%
100%
Batch size 32
0%
100%
Random seeds set
100%
100%
Separate val loop
100%
100%
Classification report
100%
100%
Validation set included
0%
100%
Without context: $0.4057 · 4m 54s · 15 turns · 387 in / 6,188 out tokens
With context: $0.7039 · 7m 44s · 23 turns · 272 in / 7,702 out tokens
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.