scikit-learn

Guide machine learning tasks with scikit-learn pipelines, preprocessing, and cross-validation.

Updated Feb 1, 2026
One-click install
npx skills add https://github.com/nferrer-dev/claude-dotfiles --skill scikit-learn-nferrer-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scikit-learn
Source: https://github.com/nferrer-dev/claude-dotfiles/tree/main/skills/scikit-learn
Command: npx skills add https://github.com/nferrer-dev/claude-dotfiles --skill scikit-learn-nferrer-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill removes the complexity of building machine learning models by providing a standardized, reproducible framework for data preprocessing, model selection, and evaluation.

Core Features & Use Cases

  • End-to-End Pipelines: Build production-ready workflows that chain preprocessing and modeling to prevent data leakage.
  • Model Comparison: Systematically evaluate multiple algorithms (classification, regression, clustering) using cross-validation.
  • Use Case: Use this skill to build a robust classification pipeline that automatically handles missing values, scales numerical features, encodes categorical variables, and tunes hyperparameters for optimal performance.

Quick Start

Run the classification pipeline script to train and evaluate a model on your dataset by executing the classification_pipeline.py script located in the scripts directory.

Frequently Asked Questions about scikit-learn

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

FAQPage Schema
How do I build a machine learning pipeline that prevents data leakage during preprocessing?

To build a machine learning pipeline that prevents data leakage, chain preprocessing steps and modeling together using scikit-learn. This ensures transformations like scaling and encoding are fitted only on training data during cross-validation.

What is the best way to compare multiple classification algorithms systematically?

The best way to compare multiple classification algorithms systematically is using cross-validation. This approach evaluates models consistently across data subsets, ensuring reproducible model evaluation and robust performance metrics.

How do I handle missing values and categorical variables in a predictive modeling workflow?

Handle missing values and categorical variables in predictive modeling by integrating automated preprocessing into the workflow. This framework standardizes data transformation, scaling numerical features and encoding categorical variables before model training.

Can I use scikit-learn for both clustering and dimensionality reduction tasks?

Yes, you can use scikit-learn for clustering and dimensionality reduction tasks. The framework provides comprehensive guidance for unsupervised learning algorithms alongside classification and regression capabilities.

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

Yes, pandas and numpy are required dependencies to run these classification pipelines. They handle underlying data manipulation and numerical operations required for preprocessing, model training, and evaluation workflows.

How do I tune hyperparameters for optimal performance without overfitting the model?

Tune hyperparameters for optimal performance without overfitting by combining cross-validation with hyperparameter search methods. This standardized framework ensures reproducible model evaluation while systematically finding the best model configurations.