scikit-learn

Builds and evaluates scikit-learn classification, regression, clustering and preprocessing pipelines with mixed numeric/categorical data.

Updated May 24, 2026
One-click install
npx skills add https://github.com/Estrella-231/Mathematical_modeling_tongmeng --skill scikit-learn-estrella-231
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scikit-learn
Source: https://github.com/Estrella-231/Mathematical_modeling_tongmeng/tree/main/.agents/skills/scikit-learn
Command: npx skills add https://github.com/Estrella-231/Mathematical_modeling_tongmeng --skill scikit-learn-estrella-231

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you build reliable machine learning models by turning raw tabular data into trained predictors and objectively measuring their performance.
It reduces the risk of mistakes like data leakage, inconsistent preprocessing, and unreliable metric comparisons.

Core Features & Use Cases

  • Supervised learning workflows for classification and regression, including common baselines and strong tuned models.
  • Unsupervised learning workflows for clustering and dimensionality reduction, with standard evaluation metrics where possible.
  • End-to-end ML pipelines that combine preprocessing, model training, cross-validation, and hyperparameter tuning in one reproducible object.

Use it when you need to: compare models fairly, tune hyperparameters efficiently, handle missing values and categorical variables, and produce evaluation artifacts like reports and confusion matrices.

Quick Start

Run a complete scikit-learn classification workflow on a pandas DataFrame by preprocessing numeric and categorical columns, training multiple models, tuning the best one with cross-validation, and reporting test metrics.

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 handles mixed numeric and categorical features?

To build a machine learning pipeline for mixed tabular data, use scikit-learn's ColumnTransformer to apply different preprocessing steps to numeric and categorical columns, then chain it with an estimator using Pipeline for consistent, leakage-free transforms.

What is the best way to tune hyperparameters and evaluate machine learning models objectively?

The best way to tune hyperparameters and evaluate models objectively is by using cross-validation workflows within a scikit-learn Pipeline, ensuring reliable metric comparisons and preventing data leakage during hyperparameter tuning.

Can I train classification and clustering models on a pandas DataFrame with missing values?

Yes, you can train classification and clustering models on a pandas DataFrame with missing values by incorporating imputation steps within your scikit-learn Pipeline to handle missing data before it reaches the estimator.

How do I prevent data leakage when applying preprocessing transforms during model training?

To prevent data leakage when applying preprocessing transforms, combine preprocessing and model training into a single scikit-learn Pipeline object so that cross-validation fits transformers only on training folds.

Does scikit-learn support unsupervised learning workflows for dimensionality reduction?

Yes, scikit-learn supports unsupervised learning workflows for dimensionality reduction and clustering, providing standard evaluation metrics where possible to assess the quality of the transformed components.