Skip to main content

A graph-based functional API for building complex scikit-learn pipelines.

Project description

baikal is a graph-based, functional API for building complex machine learning pipelines of objects that implement the scikit-learn API. It is mostly inspired on the excellent Keras API for Deep Learning, and borrows a few concepts from the TensorFlow framework and the (perhaps lesser known) graphkit package.

baikal aims to provide an API that allows to build complex, non-linear machine learning pipelines that looks like this:

https://raw.githubusercontent.com/alegonz/baikal/master/illustrations/multiple_input_nonlinear_pipeline_example_diagram.png

with code that looks like this:

x1 = Input()
x2 = Input()

y1 = ExtraTreesClassifier()(x1)
y2 = RandomForestClassifier()(x2)
z = PowerTransformer()(x2)
z = PCA()(z)
y3 = LogisticRegression()(z)

ensemble_features = Stack()([y1, y2, y3])
y = SVC()(ensemble_features)

model = Model([x1, x2], y)

baikal is compatible with Python >=3.5 and is distributed under the BSD 3-clause license.

Project details


Download files

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

Files for baikal, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size baikal-0.1.0-py3-none-any.whl (19.6 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page