Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
eyadsibai avatar

Scikit Learn

  • 92 installs
  • 7 repo stars
  • Updated January 15, 2026
  • eyadsibai/ltk

Helps with ai & agent building tasks.

About

scikit-learn is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted development.

  • scikit-learn
  • AI & Agent Building
  • AI-coding skill

Scikit Learn by the numbers

  • 92 all-time installs (skills.sh)
  • Ranked #4,715 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Jul 30, 2026 (Skillselion catalog sync)
npx skills add https://github.com/eyadsibai/ltk --skill scikit-learn

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs92
repo stars7
Last updatedJanuary 15, 2026
Repositoryeyadsibai/ltk

What it does

Helps with ai & agent building tasks.

Files

SKILL.mdMarkdownGitHub ↗

Scikit-learn Machine Learning

Industry-standard Python library for classical machine learning.

When to Use

  • Classification or regression tasks
  • Clustering or dimensionality reduction
  • Preprocessing and feature engineering
  • Model evaluation and cross-validation
  • Hyperparameter tuning
  • Building ML pipelines

---

Algorithm Selection

Classification

AlgorithmBest ForStrengths
Logistic RegressionBaseline, interpretableFast, probabilistic
Random ForestGeneral purposeHandles non-linear, feature importance
Gradient BoostingBest accuracyState-of-art for tabular
SVMHigh-dimensional dataWorks well with few samples
KNNSimple problemsNo training, instance-based

Regression

AlgorithmBest ForNotes
Linear RegressionBaselineInterpretable coefficients
Ridge/LassoRegularization neededL2 vs L1 penalty
Random ForestNon-linear relationshipsRobust to outliers
Gradient BoostingBest accuracyXGBoost, LightGBM wrappers

Clustering

AlgorithmBest ForKey Parameter
KMeansSpherical clustersn_clusters (must specify)
DBSCANArbitrary shapeseps (density)
AgglomerativeHierarchicaln_clusters or distance threshold
Gaussian MixtureSoft clusteringn_components

Dimensionality Reduction

MethodPreservesUse Case
PCAGlobal varianceFeature reduction
t-SNELocal structure2D/3D visualization
UMAPBoth local/globalVisualization + downstream

---

Pipeline Concepts

Key concept: Pipelines prevent data leakage by ensuring transformations are fit only on training data.

ComponentPurpose
PipelineSequential steps (transform → model)
ColumnTransformerApply different transforms to different columns
FeatureUnionCombine multiple feature extraction methods

Common preprocessing flow:

1. Impute missing values (SimpleImputer) 2. Scale numeric features (StandardScaler, MinMaxScaler) 3. Encode categoricals (OneHotEncoder, OrdinalEncoder) 4. Optional: feature selection or polynomial features

---

Model Evaluation

Cross-Validation Strategies

StrategyUse Case
KFoldGeneral purpose
StratifiedKFoldImbalanced classification
TimeSeriesSplitTemporal data
LeaveOneOutVery small datasets

Metrics

TaskMetricWhen to Use
ClassificationAccuracyBalanced classes
F1-scoreImbalanced classes
ROC-AUCRanking, threshold tuning
Precision/RecallDomain-specific costs
RegressionRMSEPenalize large errors
MAERobust to outliers
Explained variance

---

Hyperparameter Tuning

MethodProsCons
GridSearchCVExhaustiveSlow for many params
RandomizedSearchCVFasterMay miss optimal
HalvingGridSearchCVEfficientRequires sklearn 0.24+

Key concept: Always tune on validation set, evaluate final model on held-out test set.

---

Best Practices

PracticeWhy
Split data firstPrevent leakage
Use pipelinesReproducible, no leakage
Scale for distance-basedKNN, SVM, PCA need scaled features
Stratify imbalancedPreserve class distribution
Cross-validateReliable performance estimates
Check learning curvesDiagnose over/underfitting

---

Common Pitfalls

PitfallSolution
Fitting scaler on all dataUse pipeline or fit only on train
Using accuracy for imbalancedUse F1, ROC-AUC, or balanced accuracy
Too many hyperparametersStart simple, add complexity
Ignoring feature importanceUse feature_importances_ or permutation importance

Resources

  • Docs: <https://scikit-learn.org/>
  • User Guide: <https://scikit-learn.org/stable/user_guide.html>
  • Algorithm Cheat Sheet: <https://scikit-learn.org/stable/tutorial/machine_learning_map/>

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.