koaning/scikit-lego
Extra blocks for scikit-learn pipelines.
What it solves
Many machine learning practitioners frequently write custom transformers, metrics, and models to extend scikit-learn. This project consolidates these custom tools into a single, tested, and high-quality package to reduce redundant code and improve reliability.
How it works
It provides a collection of modules that follow the standard scikit-learn API. You can import these tools and integrate them directly into your existing scikit-learn pipelines alongside standard components. Every feature is required to pass unit tests and demonstrate a clear, real-world use case.
Who it’s for
This library is for data scientists and machine learning engineers who use scikit-learn and need specialized components—such as fairness-constrained classifiers, custom preprocessing steps, or unique model selection techniques—that are not available in the core library.
Highlights
- Extensive collection of custom transformers for column manipulation, feature engineering, and data cleaning.
- Specialized linear models and classifiers, including those focused on fairness metrics like demographic parity.
- Meta-estimators that allow for advanced techniques like threshold tuning, grouped predictions, and outlier detection.
- Built-in utility functions for debugging pipelines and handling pandas dataframes.
- A variety of ready-to-use datasets for testing and experimentation.
- Robust model selection tools, including specialized cross-validation for time-series data.
Related
- Project
- Project
- Project
- Project
- Project