Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Builds scikit-learn workflows for classification, regression, clustering, preprocessing, cross-validation, tuning and pipelines.
87% 91%+4 ptsof test cases passed
Passed 21 of 23 test cases with the skill, and 20 of 23 without it.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
This file contains the detailed procedure and reference material extracted from
SKILL.mdfor focused loading. The root skill defines activation, examples, safety constraints, and limitations.
This skill provides comprehensive guidance for machine learning tasks using scikit-learn, the industry-standard Python library for classical machine learning. Use this skill for classification, regression, clustering, dimensionality reduction, preprocessing, model evaluation, and building production-ready ML pipelines.
# Install scikit-learn using uv
uv pip install scikit-learn
# Optional: Install visualization dependencies
uv pip install matplotlib seaborn
# Commonly used with
uv pip install pandas numpy
Use a supported pinned sklearn version; sparse_output requires1.2+. Dense one-hot output below fits GradientBoostingClassifier but can exhaust memory at high cardinality: bound categories/data size or choose an estimator with compatible sparse input. HalvingGridSearchCV and IterativeImputer require their experimental enable imports in versions where still experimental. Split by time/group where needed rather than applying random stratification universally, and fit preprocessing only within training folds. Treat pickle/joblib models as executable trusted artifacts, never load untrusted model files.
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import classification_report
# Split data
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.2, stratify=y, random_state=42
)
Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.