scikit-learn

Guide building and evaluating scikit-learn ML models with pipelines and cross-validation.

18|1|Updated Dec 27, 2025
One-click install
npx skills add https://github.com/LogauaEngstrom/claude-scientific-skills --skill scikit-learn-logauaengstrom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scikit-learn
Source: https://github.com/LogauaEngstrom/claude-scientific-skills/tree/main/scientific-skills/scikit-learn
Command: npx skills add https://github.com/LogauaEngstrom/claude-scientific-skills --skill scikit-learn-logauaengstrom

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, pandas, scikit-learn, matplotlib, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Build, evaluate, and deploy classical machine learning models efficiently by providing a practical, hands-on guide to using scikit-learn's supervised and unsupervised algorithms, preprocessing tools, and end-to-end pipelines.

Core Features & Use Cases

  • End-to-end ML workflows from data preprocessing and feature engineering to model selection and evaluation.
  • Pipeline-based reproducibility that prevents data leakage and simplifies experimentation.
  • Extensive reference content, including guidance on linear models, ensembles, clustering, dimensionality reduction, and model evaluation, with ready-to-run examples.

Quick Start

Install scikit-learn with uv pip install scikit-learn and run the included scripts to explore classification and clustering workflows.

Frequently Asked Questions about scikit-learn

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build reproducible machine learning pipelines to prevent data leakage?

Reproducible machine learning pipelines prevent data leakage by bundling preprocessing and modeling steps together. Using scikit-learn pipelines ensures transformations are fitted only on training data during cross-validation, keeping experiments isolated and consistent.

What is the best way to perform model selection and hyperparameter tuning with scikit-learn?

Model selection and hyperparameter tuning with scikit-learn are best performed using cross-validation. The guide covers integrating these components to systematically evaluate supervised and unsupervised learning algorithms for optimal real-world performance.

Can I use scikit-learn for both supervised and unsupervised learning workflows?

Yes, you can use scikit-learn for both supervised and unsupervised learning workflows. The provided scripts and reference materials cover classification, clustering, dimensionality reduction, and regression tasks with ready-to-run examples.

Do I need pandas and numpy installed to run scikit-learn preprocessing pipelines?

Yes, pandas and numpy are required dependencies for running scikit-learn preprocessing pipelines. They provide the fundamental data structures and numerical operations needed for feature engineering and model evaluation tasks.

How does feature engineering integration work within scikit-learn pipelines?

Feature engineering integration within scikit-learn pipelines works by sequentially applying transformers to raw data before reaching the estimator. This encapsulates the entire workflow, ensuring consistent feature application during training and inference.