Skip to main content

IbisML is a library for building scalable ML pipelines using Ibis.

Project description

IbisML

Build status Docs License PyPI

What is IbisML?

IbisML is a library for building scalable ML pipelines using Ibis:

How do I install IbisML?

pip install ibis-ml

How do I use IbisML?

With recipes, you can define sequences of feature engineering steps to get your data ready for modeling. For example, create a recipe to replace missing values using the mean of each numeric column and then normalize numeric data to have a standard deviation of one and a mean of zero.

import ibis_ml as ml

imputer = ml.ImputeMean(ml.numeric())
scaler = ml.ScaleStandard(ml.numeric())
rec = ml.Recipe(imputer, scaler)

A recipe can be chained in a Pipeline like any other transformer.

from sklearn.pipeline import Pipeline
from sklearn.svm import SVC

pipe = Pipeline([("rec", rec), ("svc", SVC())])

The pipeline can be used as any other estimator and avoids leaking the test set into the train set.

from sklearn.datasets import make_classification
from sklearn.model_selection import train_test_split

X, y = make_classification(random_state=0)
X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=0)
pipe.fit(X_train, y_train).score(X_test, y_test)

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

ibis_ml-0.1.0.tar.gz (25.4 kB view details)

Uploaded Source

Built Distribution

ibis_ml-0.1.0-py3-none-any.whl (31.7 kB view details)

Uploaded Python 3

File details

Details for the file ibis_ml-0.1.0.tar.gz.

File metadata

  • Download URL: ibis_ml-0.1.0.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for ibis_ml-0.1.0.tar.gz
Algorithm Hash digest
SHA256 22c38f7ccf840e9dea2a004cd929bffa3c5da3789156d0a4a9e433609e02feb4
MD5 55202bf6a39b80cefc98f902d5d9851c
BLAKE2b-256 199817f997b6ee7387e42fcb2df7d66d1511241cc26516d64095c7331d490e34

See more details on using hashes here.

Provenance

File details

Details for the file ibis_ml-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ibis_ml-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 31.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for ibis_ml-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 544d1d45f94278e63baeaef0ce9be95d558af96478e226f966cd38fd3427ef9f
MD5 36a45ebffda26518c61084ffd56b2ae6
BLAKE2b-256 63bd3aefcf52c346d536f2d37a8f510932b8d24628e38f690b2c440615b2c351

See more details on using hashes here.

Provenance

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