Time series learning with Python.
Project description
wildboar
wildboar is a Python module for temporal machine learning and fast distance computations built on top of scikit-learn and numpy distributed under the GNU Lesser General Public License Version 3.
It is currently maintained by Isak Samsten
Features
Data | Classification | Regression | Explainability | Metric | Unsupervised | Outlier |
---|---|---|---|---|---|---|
Repositories | ShapeletForestClassifier |
ShapeletForestRegressor |
ShapeletForestCounterfactual |
UCR-suite | ShapeletForestEmbedding |
IsolationShapeletForest |
ExtraShapeletTreesClassifier |
ExtraShapeletTreesRegressor |
KNearestCounterfactual |
RandomShapeletEmbedding |
|||
RocketTreeClassifier |
RocketRegressor |
PrototypeCounterfactual |
RocketEmbedding |
|||
RocketClassifier |
RandomShapeletRegressor |
|||||
RandomShapeletClassifier |
RocketTreeRegressor |
|||||
RockestClassifier |
RockestRegressor |
Installation
Dependencies
wildboar requires:
- python>=3.7
- numpy>=1.17.4
- scikit-learn>=0.21.3
- scipy>=1.3.2
Some parts of wildboar is implemented using Cython. Hence, compilation requires:
- cython (>= 0.29.14)
Binaries
wildboar
is available through pip
and can be installed with:
pip install wildboar
Universal binaries are compiled for GNU/Linux and Python 3.7, 3.8 and 3.9.
Compilation
If you already have a working installation of numpy, scikit-learn, scipy and cython, compiling and installing wildboar is as simple as:
python setup.py install
To install the requirements, use:
pip install -r requirements.txt
Development
Contributions are welcome. Pull requests should be formatted using Black.
Usage
from wildboar.ensemble import ShapeletForestClassifier
from wildboar.datasets import load_two_lead_ecg
x_train, x_test, y_train, y_test = load_two_lead_ecg(merge_train_test=False)
c = ShapeletForestClassifier()
c.fit(x_train, y_train)
c.score(x_test, y_test)
See the tutorial for more examples.
Source code
You can check the latest sources with the command:
git clone https://github.com/isakkarlsson/wildboar
Documentation
- HTML documentation: https://isaksamsten.github.io/wildboar
Citation
If you use wildboar
in a scientific publication, I would appreciate
citations to the paper:
-
Karlsson, I., Papapetrou, P. Boström, H., 2016. Generalized Random Shapelet Forests. In the Data Mining and Knowledge Discovery Journal
ShapeletForestClassifier
-
Isak Samsten, 2020. isaksamsten/wildboar: wildboar. Zenodo. doi:10.5281/zenodo.4264063
ShapeletForestRegressor
ExtraShapeletForestClassifier
ExtraShapeletForestRegressor
IsolationShapeletForest
ShapeletForestEmbedding
PrototypeCounterfactual
RocketTreeClassifier
RocketTreeRegressor
RockestClassifier
RockestRegressor
-
Karlsson, I., Rebane, J., Papapetrou, P. et al. Locally and globally explainable time series tweaking. Knowl Inf Syst 62, 1671–1700 (2020)
ShapeletForestCounterfactual
KNearestCounterfactual
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 Distributions
Hashes for wildboar-1.1.0rc2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a76f8f3ad18ec5af0886b9d3f0fd09aa6cf23c77d510df40f58ce3a3fbe0cfd9 |
|
MD5 | 0829eb0e4fbff0a9d568415f8bd619ef |
|
BLAKE2b-256 | e7d5b8f0a6404a410d0066002b0ab134124571a8eb6597d3afb903b04f5f4011 |
Hashes for wildboar-1.1.0rc2-cp39-cp39-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14359703a56d7b3a83b60d117dfdff683b6e6666d6a1d59a9eba938d9925e5bc |
|
MD5 | 5efed697f6a9127ee9feaeea312e4196 |
|
BLAKE2b-256 | c24d67c886be14066be305b80a94634e4723c4686858156fda3deee65e0d33b4 |
Hashes for wildboar-1.1.0rc2-cp39-cp39-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92f6b2994e766f4d8174a5fea209b7d9af5e73f4c8bcf613acba2947d0972e6a |
|
MD5 | 4bc59606e351a8b0834d8976d113809c |
|
BLAKE2b-256 | cbdb16e3aeb4d8587db87e232837729645877a799f1b853d6e5ef6d99285d669 |
Hashes for wildboar-1.1.0rc2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7de0959dd4743f3d80230fec5522d4921dc5a50997be9bf27212d0b160411522 |
|
MD5 | 4fc870d5149968d827feffe9686ebcbc |
|
BLAKE2b-256 | 0006629d08d639049328fac8a7c700f531ce076164d28f4dca2e139d98af87dc |
Hashes for wildboar-1.1.0rc2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52b780d87ee6bb5f04ec917df075e69404831390e386c8556480c989192d2f48 |
|
MD5 | 55b9fe3dd60cc00e380ae57550d2842d |
|
BLAKE2b-256 | c7a3e18c6eea04f345efcdda0a0d5307f5aa222890bf2d5dd735d57ffbca28c9 |
Hashes for wildboar-1.1.0rc2-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6de56f44bc57cd29f6e95d33aa60b8cbaedb575f082c676e4cc4439d9db2fabe |
|
MD5 | 05fa07a53be82aca7b657ba9cd3cee3d |
|
BLAKE2b-256 | 55e7deb9c1772f4135b96b6538003d94b5b8364613573fc4ae227740435aad72 |
Hashes for wildboar-1.1.0rc2-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f46b8bb94e74e818ae912e84ec1559a52b3868d3e37680d480c511fa4d3e1bfc |
|
MD5 | 726c87b4bc81f401c9b4476b35b33dac |
|
BLAKE2b-256 | f31d830e97573fb08244b2ccaeeae1a58df88067c913a72257dcf7136d1562e6 |
Hashes for wildboar-1.1.0rc2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5416ad41a52107b3a5f81bc7509c571b38c003df6d4cc759e73ee6ab500bc3a5 |
|
MD5 | eb6c8a14238dc760f31fa5175512bdc2 |
|
BLAKE2b-256 | 673af2cf8a5bc7d5e359b50ff436e8ee2db85de99416cbde79578d21b1b62b73 |
Hashes for wildboar-1.1.0rc2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f46f47edae751c481e08d497d12051fce9e392a51f84c0a612793f568baf5625 |
|
MD5 | bcbe118b16751fcd0acd60aae25fbe6a |
|
BLAKE2b-256 | 7e1137571425e0fae2a9b5ba166e4f80f48af77d9b078c056ef1ac88fbcee05f |
Hashes for wildboar-1.1.0rc2-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4dc3ba19c46cc86d8b7ce673ea1b9fda23384c3e92e76b69bd7068878a5d18fd |
|
MD5 | bf8a3ce9b78d4f3a63447f019f44c2e1 |
|
BLAKE2b-256 | 24ee906f15e08af17c910bcc2f3cc035f5bb2dee53b348665d35ad65293e1c6e |
Hashes for wildboar-1.1.0rc2-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12e69de3b48bee13eb87b590e849ab9bdb23d29ce4f260cd8bf4edb8bb089c5d |
|
MD5 | 05584a35302abc9af21c100b8409cdd6 |
|
BLAKE2b-256 | 5ee2ef22a2d8c331f620cea0271e9e68fe6a52d160b3d8224ed6cfaf7bb4756c |
Hashes for wildboar-1.1.0rc2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 428900509fd92e364280c34adaba307161e6fcb66cd3b4ff69630d081f886649 |
|
MD5 | 8a9ca0745786c59f443b62c80ee2860c |
|
BLAKE2b-256 | 3ff32a2143f2a37f794c31449c2821e338f7763688dd52aa3d270d1745a802e4 |