scikit-learn

Implement, evaluate, and optimize scikit-learn machine learning models with pipelines.

52|6|Updated Nov 24, 2025
One-click install
npx skills add https://github.com/ovachiever/droid-tings --skill scikit-learn-ovachiever
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scikit-learn
Source: https://github.com/ovachiever/droid-tings/tree/main/skills/scikit-learn
Command: npx skills add https://github.com/ovachiever/droid-tings --skill scikit-learn-ovachiever

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides guided, practical machine learning workflows using scikit-learn, covering supervised learning, preprocessing, model evaluation, and end-to-end pipelines to accelerate model development.

Core Features & Use Cases

  • Supervised & Unsupervised Learning: Implement a range of algorithms for classification, regression, clustering, and dimensionality reduction.
  • Pipelines & Preprocessing: Build reproducible preprocessing steps and pipelines that prevent data leakage.
  • Model Evaluation & Tuning: Cross-validation, grid/random search, and performance metrics for robust model selection.
  • Use Case: Create a full workflow to preprocess tabular data, train several models, compare via cross-validation, and select the best performing model.

Quick Start

Run a complete classification pipeline with built-in preprocessing and model comparison scripts.

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?

Machine learning pipelines combine preprocessing and model training into a single unit, ensuring transformations fit only on training data and apply consistently to test data. Scikit-learn's Pipeline and ColumnTransformer classes automate this workflow, preventing accidental leakage where test information contaminates training.

What's the best way to compare multiple classification models on tabular data?

Cross-validation and grid search enable fair model comparison by training multiple algorithms on different data splits and evaluating them with consistent metrics. Scikit-learn's cross_validate and GridSearchCV automate this process, handling hyperparameter tuning and metric computation across supervised learning models.

Can I preprocess text and tabular data together in a single workflow?

Yes, scikit-learn's ColumnTransformer routes different data types to specialized preprocessors—vectorizers for text, scalers for numeric features—then combines outputs. This enables end-to-end preprocessing of mixed-format datasets in reproducible pipelines compatible with any downstream model.

How do I tune hyperparameters without manually testing every combination?

Grid search and random search automate hyperparameter optimization by testing predefined or sampled parameter combinations and returning the best-performing configuration. Scikit-learn's GridSearchCV and RandomizedSearchCV integrate with cross-validation to select hyperparameters that generalize across data splits.

What evaluation metrics should I use for regression versus classification?

Regression uses metrics like mean squared error and R² to measure prediction accuracy on continuous targets; classification uses accuracy, precision, recall, and F1-score for categorical targets. Scikit-learn's metrics module provides standard implementations for both task types, supporting model selection and performance reporting.