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.3.tar.gz (28.8 kB view details)

Uploaded Source

Built Distribution

ibis_ml-0.1.3-py3-none-any.whl (35.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ibis_ml-0.1.3.tar.gz
  • Upload date:
  • Size: 28.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for ibis_ml-0.1.3.tar.gz
Algorithm Hash digest
SHA256 88472dae8b1228b5bc1c39dabf1b984124c026ad186ec1cc85a5528bb59b5ead
MD5 72ec6538ce2c80edfeaf683e495b4dba
BLAKE2b-256 7181eee49fc2c1b7fea6de913c2921e8c8796653acd351f5102af754bf1eefbb

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ibis_ml-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 35.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for ibis_ml-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 27c89f8fcb74170ef71a2ada674d4870ffb86146a9c01b8b1389def66eb97c2f
MD5 7b2b3e13e9bfd42000b25af038d58533
BLAKE2b-256 d882eb04f097235815d2e444c2d2bcac212e74ee7ab6a2d7f2cba3d5bcb49e2b

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