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 |
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 (Version 1.0.3). Zenodo. doi:10.5281/zenodo.4264063
ShapeletForestRegressor
ExtraShapeletForestClassifier
ExtraShapeletForestRegressor
IsolationShapeletForest
ShapeletForestEmbedding
PrototypeCounterfactual
-
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.0rc1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76d0cbf9e3dbd24b2b67974fa05ce112b2017d2190b351dc39274679c38dd063 |
|
MD5 | 21ec6b7fb86e68ac1f6c83c4fdd0b7cd |
|
BLAKE2b-256 | 0a5ead63accd09dda8c48715f8d576a64b9af007b03bc8c5dd187892b84d8bc0 |
Hashes for wildboar-1.1.0rc1-cp39-cp39-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c094be2a9161eb6af9e3a0361c966f85fc2d6b39e1c0e36b518bb0f7a443329b |
|
MD5 | bb4422bd89e53fcd4831cb8a9bce3a05 |
|
BLAKE2b-256 | 302ac82012073302b3c8fc95fbd8b9e7e93101b19c6ca2ba4571ac65af926aec |
Hashes for wildboar-1.1.0rc1-cp39-cp39-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e481667ad336d3e85fedfc5428595e01169d78bbb37661df8d1ba7bf375612a6 |
|
MD5 | fb02e3e73b16af6c7c6bb068392b3c6f |
|
BLAKE2b-256 | 11d979b39f434521ecf394d96e4bce4824e64195be5f404dacba30df6b5e99c6 |
Hashes for wildboar-1.1.0rc1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a83f2a5d666ffa6c7b50ed821cbc7d993ae8bf0ecdf200c6f5ab18820c884b7 |
|
MD5 | 6678fd43149a5b7545393752c7b6ab29 |
|
BLAKE2b-256 | 08d308376ac0aca3c1b8255e6346af8e1f3c8665ba9ba02bad91a519cb7e709d |
Hashes for wildboar-1.1.0rc1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f02e6bf4662f93adba44961e39c3db7454a7e88f97a13035e68b0427caa74092 |
|
MD5 | 31de836ddb4555c8e4e4ee855dba3b0f |
|
BLAKE2b-256 | cf718e0fe6e3fc81d7179d10f78f7fc6a22199cbc51b19f3ce2e8ceffb728acb |
Hashes for wildboar-1.1.0rc1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8ba904568d6c9dbb2c36eb21cdba8f11f01346a5a9606f572989e8c2ea7e843 |
|
MD5 | 9413d779099f91a0c645e9da17ecaf81 |
|
BLAKE2b-256 | afa2cce9459c3ea3843784867ea514087900587ff38190ca9bc9ed827a815189 |
Hashes for wildboar-1.1.0rc1-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9fd9b804a6232b19dc665d66b471b5602ccf4d4de65e55ae81ee04ebf2535b1 |
|
MD5 | c0cade4226086793f8741ce0ed396fa2 |
|
BLAKE2b-256 | d47cdce2b98ac5ff8ae247d23badbb60bf98862f8a5979b6d5578c6297beca8e |
Hashes for wildboar-1.1.0rc1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45f053acd34955c1cd5dc6769cba0d5e3fee6105d065a35bf83ec1183af70777 |
|
MD5 | 4253b341030377f109753cc9f6c21753 |
|
BLAKE2b-256 | 961b7b40341102eaad4a915a7b3b06ca2356796735e0d6094ab20b1773f4e7e2 |
Hashes for wildboar-1.1.0rc1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36e1fd71f97b54c9c26f5ec974b7faab7b8239b9314f903cb66f26c9dec4bb44 |
|
MD5 | abe9963440573948711931c8105de72d |
|
BLAKE2b-256 | 240dfa139752a3b142474fb226323e95b42a7e84547c6429321a355d350e2fde |
Hashes for wildboar-1.1.0rc1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be79c8f2b010932287ecd3eebeb246953aa240a07d556ca2f316bc1cb236b93a |
|
MD5 | 462c1840f09cffd6e8f1767641550294 |
|
BLAKE2b-256 | 07b56deff06bf1b7e9fa040d2628ab8037548f7b5d4557ff010e841f086a407a |
Hashes for wildboar-1.1.0rc1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 608796197fb7eda11045a824df150fa6a5856ef6c547b4fb2a6ebbd8e6452a6d |
|
MD5 | a283793a7457cc673e03935c2701b907 |
|
BLAKE2b-256 | ec92c32b7ed91eb573441864e97516249f0904e3b925164b37c7c2d5f4483aaf |
Hashes for wildboar-1.1.0rc1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c46d3b030a0ca5dae8d872f189807ac697adb5c99fc0924f26356efbca240792 |
|
MD5 | 000e5b4bbe5587154322693c9f207cbd |
|
BLAKE2b-256 | a9dc3b0a0de543edebea397d80db51b88d6b9d68b0893285805a775a329f35af |