Scikit learn best practices

From Kilo-Org/kilo-marketplace · View interactive version

Scikit learn best practices is an AI agent skill from the GitHub repository Kilo-Org/kilo-marketplace. Best practices for scikit-learn machine learning, model development, evaluation, and deployment in Python

How to use this skill

Skill file

Scikit-learn Best Practices

Expert guidelines for scikit-learn development, focusing on machine learning workflows, model development, evaluation, and best practices.

Code Style and Structure

Machine Learning Workflow

Data Preparation

Feature Engineering

Pipelines

from sklearn.pipeline import Pipeline
from sklearn.preprocessing import StandardScaler
from sklearn.ensemble import RandomForestClassifier

pipeline = Pipeline([
    ('scaler', StandardScaler()),
    ('classifier', RandomForestClassifier(random_state=42))
])

Column Transformers

Model Selection and Tuning

Cross-Validation

Hyperparameter Tuning

Model Evaluation

Classification Metrics

Regression Metrics

Evaluation Best Practices

Handling Imbalanced Data

Feature Selection

Model Persistence

Performance Optimization

Key Conventions

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.