refactor:scikit-learn

Community

Turn ML code into production-ready pipelines.

AuthorSnakeO
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill converts fragmented ML scripts into cohesive, production-ready pipelines, eliminating data leakage risks and improving reproducibility across experiments.

Core Features & Use Cases

  • Pipeline-first design: encapsulates preprocessing and modeling in a single Pipeline to prevent leakage.
  • ColumnTransformer & Custom Transformers: handles heterogeneous data and customizable feature engineering while maintaining API compatibility.
  • Robust evaluation patterns: enforces proper cross-validation, fixed random_state, and systematic hyperparameter tuning for reliable comparisons.

Quick Start

Refactor the provided scikit-learn script to implement a Pipeline with a ColumnTransformer, validate with cross-validation, and set deterministic random_state. Then run the refactored code on your dataset and compare results to the original workflow.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: refactor:scikit-learn
Download link: https://github.com/SnakeO/claude-debug-and-refactor-skills-plugin/archive/main.zip#refactor-scikit-learn

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.