Skip to main content

manual stacking package for ML

Project description

Motivation:

Sometimes we train multiple models for different contexts in the data, for example:

  • We want to build many independent linear models, for example estimating elasticity for different products

  • Model input table has a block of observations with NULLS in some features, we want two (or more) independent models; for data with nulls vs without

But, as we build separate models, we have several challenges:

  • It's hard to keep track of overall (combined) model performance. Often we resort to reporting performance on models individually

  • Many MLOps performance monitoring systems - such as MLFlow - are structured to track a single model object, and having multiple independent model objects can make the interface unwieldy

  • We may resort to doing training and model inference in one shot without saving the model object, since running a training pipeline, then inference pipeline requires saving and loading many models, which is hard to keep track of

This library helps combine models (also known as "stacking") when you want to explicitly assign the models to fit and predict on specific observations. Currently, the sklearn stacking module does not allow for explicitly assigning models or independent model training

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stacking_manual-0.1.11.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

stacking_manual-0.1.11-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page