train

Installation
SKILL.md

Model Training & Evaluation

Templates and reference for training, evaluating, and persisting ML models.

Data splitting

Standard (>10k rows)

from sklearn.model_selection import train_test_split

X_train, X_temp, y_train, y_temp = train_test_split(X, y, test_size=0.3, random_state=42, stratify=y)
X_val, X_test, y_val, y_test = train_test_split(X_temp, y_temp, test_size=0.5, random_state=42, stratify=y_temp)
Installs
1
GitHub Stars
2
First Seen
Jun 19, 2026
train — damionrashford/mlx