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:
with code that looks like this:
x1 = Input()
x2 = Input()
y_t = Input()
y1 = ExtraTreesClassifier()(x1, y_t)
y2 = RandomForestClassifier()(x2, y_t)
z = PowerTransformer()(x2)
z = PCA()(z)
y3 = LogisticRegression()(z, y_t)
stacked_features = Stack()([y1, y2, y3])
y = SVC()(stacked_features, y_t)
model = Model([x1, x2], y, y_t)
baikal is compatible with Python >=3.5 and is distributed under the BSD 3-clause license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file baikal-0.4.2.tar.gz.
File metadata
- Download URL: baikal-0.4.2.tar.gz
- Upload date:
- Size: 32.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71fe710b289009bd89d9b8ac8f6258d6ed4d4b1d39ab23aecc5b5504d9b8d537
|
|
| MD5 |
41a60c122002c5e050670a5fd3892363
|
|
| BLAKE2b-256 |
631d024899e604f207a259a7df6cbf00730e13ccfbe1d3084b9b6556cd6f3893
|
File details
Details for the file baikal-0.4.2-py3-none-any.whl.
File metadata
- Download URL: baikal-0.4.2-py3-none-any.whl
- Upload date:
- Size: 34.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffdd87dfb7702a20998699435df3c817dd4f4be8a3a02225aaca82695452beac
|
|
| MD5 |
4b4c20fd73b22335c69fd1cf5aec715c
|
|
| BLAKE2b-256 |
e23a941047944849eb66333b366b13e3ab624e2999612bdfc038bbee78cfa416
|