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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ibis_ml-0.1.4-py3-none-any.whl (36.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ibis_ml-0.1.4.tar.gz
  • Upload date:
  • Size: 29.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ibis_ml-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f69a13cdff80a1755f347ab2665666150667f6cffed151949224482c3ece9549
MD5 14fd1ae057964affbd0d785ff6aed1f6
BLAKE2b-256 e69c2e2c2d2a638162554a524ebff266e2ec4958455b4ed879ec1c7b28ab107a

See more details on using hashes here.

Provenance

The following attestation bundles were made for ibis_ml-0.1.4.tar.gz:

Publisher: publish.yml on ibis-project/ibis-ml

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: ibis_ml-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 36.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ibis_ml-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9a7e322582640ea2c8180146ec5e3a505d6fd1148117c8f6156fd2fab904f3bc
MD5 66b4588f535c50152bfe37918c881978
BLAKE2b-256 56c23fc33720f479621c3da150245d966927b8d5b6d03ee569e7cd100544504a

See more details on using hashes here.

Provenance

The following attestation bundles were made for ibis_ml-0.1.4-py3-none-any.whl:

Publisher: publish.yml on ibis-project/ibis-ml

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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