scikit-learn
scikit-learn is Python's go-to library for classical machine learning across classification, regression, clustering, and dimensionality reduction. It includes algorithms ranging from linear models and decision trees to ensemble methods and support vector machines, plus comprehensive tools for preprocessing, model evaluation, and hyperparameter tuning. Use it to build production-ready ML pipelines with built-in cross-validation and feature engineering capabilities.
scikit-learn helps you build and train supervised learning models for classification and regression tasks in Python.
AI-generated summary based on this skill's SKILL.md
Decision gist · record as of 2026-07-27
scikit-learn helps you build and train supervised learning models for classification and regression tasks in Python. scikit-learn is Python's go-to library for classical machine learning across classification, regression, clustering, and dimensionality reduction. It includes algorithms ranging from linear models and decision trees to ensemble methods and support vector machines, plus comprehensive tools for preprocessing, model evaluation, and hyperparameter tuning. Use it to build production-ready ML pipelines with built-in cross-validation and feature engineering capabilities.
Use it when
- scikit-learn enables you to create production-ready ML pipelines using Pipeline and ColumnTransformer to handle mixed data types.
- scikit-learn's GridSearchCV exhaustively searches over specified hyperparameter combinations, evaluating each with cross-validation.
Verify before relying
Read SKILL.md below before installing (9 files). Open directory: indexed for reading, not audited.
Install
synthetic-sciences/openscience/scikit-learn · repository language: TypeScript
Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.
Frequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What is scikit-learn used for in machine learning?
scikit-learn is Python's go-to library for classical machine learning across classification, regression, clustering, and dimensionality reduction. It includes algorithms ranging from linear models and decision trees to ensemble methods and support vector machines, plus comprehensive tools for preprocessing, model evaluation, and hyperparameter tuning.
How do I build a machine learning pipeline in Python with scikit-learn?
scikit-learn enables you to create production-ready ML pipelines using Pipeline and ColumnTransformer to handle mixed data types. Combine preprocessing steps (scaling, encoding) with model estimators in a single workflow, ensuring consistent transformations during training and prediction while avoiding data leakage.
How does scikit-learn hyperparameter tuning with grid search work?
scikit-learn's GridSearchCV exhaustively searches over specified hyperparameter combinations, evaluating each with cross-validation. It automates the tuning process, tracks performance metrics, and returns the best parameters and model. Pair it with RandomizedSearchCV for faster exploration of larger parameter spaces.
What clustering algorithms does scikit-learn provide?
scikit-learn offers multiple clustering approaches: k-means for centroid-based partitioning, DBSCAN for density-based clustering that finds arbitrary shapes, hierarchical clustering for dendrograms, and Gaussian Mixture Models for probabilistic clustering. Choose based on your data structure and whether you need to specify cluster count upfront.
How do I preprocess and handle missing values in scikit-learn?
scikit-learn provides SimpleImputer for filling missing values (mean, median, most frequent), StandardScaler and MinMaxScaler for feature scaling, OneHotEncoder for categorical encoding, and RFE for feature selection. Combine these in a Pipeline to ensure reproducible, leak-free preprocessing workflows.
What model evaluation and cross-validation tools does scikit-learn offer?
scikit-learn includes cross_val_score for k-fold cross-validation, cross_validate for multiple metrics, and specialized scorers for classification (precision, recall, F1) and regression (R², MSE). Use these to assess generalization, detect overfitting, and compare models fairly before hyperparameter tuning.
SKILL.md
Rendered from the published skill. Quoted content, verbatim.
Scikit-learn
Overview
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.
Installation
```bash
Install scikit-learn using uv
uv uv pip install scikit-learn
Optional: Install visualization dependencies
uv uv pip install matplotlib seaborn
Commonly
(truncated - see the full file via the links below)
File tree — 9 files
backend/cli/skills/coding/scikit-learn/SKILL.md
backend/cli/skills/coding/scikit-learn/references/model_evaluation.md
backend/cli/skills/coding/scikit-learn/references/pipelines_and_composition.md
backend/cli/skills/coding/scikit-learn/references/preprocessing.md
backend/cli/skills/coding/scikit-learn/references/quick_reference.md
backend/cli/skills/coding/scikit-learn/references/supervised_learning.md
backend/cli/skills/coding/scikit-learn/references/unsupervised_learning.md
backend/cli/skills/coding/scikit-learn/scripts/classification_pipeline.py
backend/cli/skills/coding/scikit-learn/scripts/clustering_analysis.py
Let your AI agent find skills like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.
wish › “Build and train supervised learning models for classification and regression”
Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →
Related skills
Scikit-learn provides a unified Python toolkit for traditional machine learning across supervised tasks (classification, regression), unsupervised methods (clustering, dimensionality reduction), and model evaluation workflows. It integrates seamlessly with NumPy and pandas for tabular data, offering linear models, tree ensembles, SVMs, K-Means, PCA, and t-SNE alongside cross-validation and hyperparameter optimization.
scikit-learn-ml provides a foundation for supervised learning tasks including classification, regression, clustering, and dimensionality reduction. It covers data preparation, model training with multiple algorithms, hyperparameter tuning via grid search, and evaluation metrics. Best suited for in-memory datasets; not for deep learning, time series, or distributed big data workloads.
Learn to build and deploy machine learning models using scikit-learn and XGBoost. This skill covers supervised and unsupervised learning, feature engineering, cross-validation strategies, hyperparameter tuning, and production-ready patterns for classification and regression tasks.
Build and evaluate machine learning models across scikit-learn, PyTorch, and TensorFlow with a structured workflow covering data preparation, feature engineering, model selection, and performance assessment. Learn to handle common pitfalls like data leakage, class imbalance, overfitting, and hyperparameter tuning mistakes through best practices and code examples.
scikit-survival is a Python library for survival analysis that handles censored data in time-to-event modeling. It offers Cox proportional hazards models, ensemble methods like Random Survival Forests and Gradient Boosting, and Survival SVMs, with evaluation metrics including concordance index and Brier score. Use it for competing risks analysis, Kaplan-Meier estimation, and any survival analysis workflow.
Statsmodels delivers rigorous statistical modeling for regression, generalized linear models, time series, and discrete outcomes. Access comprehensive diagnostics, robust standard errors, influence statistics, and publication-quality inference tables. Ideal for econometrics, causal estimation, and hypothesis testing.