scikit-learn

Build and evaluate classical machine learning models with scikit-learn pipelines.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/datamonsterr/mycoai_projects --skill scikit-learn-datamonsterr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scikit-learn
Source: https://github.com/datamonsterr/mycoai_projects/tree/main/.opencode/skills/scikit-learn
Command: npx skills add https://github.com/datamonsterr/mycoai_projects --skill scikit-learn-datamonsterr

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Streamlines end-to-end classical machine learning workflows by providing repeatable pipelines for preprocessing, modeling, and evaluation.

Core Features & Use Cases

  • Supervised learning: classification and regression with a wide range of algorithms
  • Unsupervised learning: clustering and dimensionality reduction techniques
  • Data preprocessing: comprehensive pipelines, ColumnTransformer, and feature engineering patterns
  • Model evaluation & selection: cross-validation, grid and randomized search, robust metrics and reports
  • Pipelines and composition: end-to-end workflows that prevent data leakage and simplify reproducibility
  • Example scripts: ready-to-run pipelines for classification and clustering workflows
  • References & quick references: deep dives into algorithms, evaluation, preprocessing, and pipelines

Quick Start

Run the classification_pipeline.py script to execute a full end-to-end ML workflow with preprocessing, model comparison, and evaluation.

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 scikit-learn pipeline for classification and regression?

Build scikit-learn pipelines by chaining preprocessing steps and modeling algorithms into repeatable workflows. The Skill provides ready-to-run scripts for classification and regression, executing end-to-end preprocessing, model comparison, and evaluation across tabular data.

What's the best way to prevent data leakage during preprocessing and cross-validation?

Prevent data leakage during preprocessing by using scikit-learn pipelines and ColumnTransformer. These compose end-to-end workflows that isolate feature engineering and cross-validation steps, ensuring robust model evaluation and reproducible results.

Can I use scikit-learn for unsupervised learning tasks like clustering?

Yes, you can use scikit-learn for unsupervised learning tasks like clustering and dimensionality reduction. The Skill includes example scripts and references covering unsupervised workflows, alongside supervised classification and regression pipelines.

Do I need pandas and numpy to run scikit-learn cross-validation workflows?

Yes, you need pandas and numpy to run scikit-learn cross-validation workflows. The Skill requires scikit-learn, numpy, and pandas as dependencies to process tabular data, execute deterministic pipelines, and perform hyperparameter tuning.

How does hyperparameter tuning work with grid and randomized search in scikit-learn?

Hyperparameter tuning in scikit-learn uses grid and randomized search to systematically evaluate model parameters. The Skill supports these search methods alongside cross-validation, providing robust metrics and reports for optimal model selection.

When should I not use classical machine learning pipelines for my data?

Avoid classical machine learning pipelines when working with non-tabular data like raw images or text sequences, as this Skill focuses on tabular data workflows. It covers traditional algorithms, not deep learning or neural network architectures.