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 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 |
||||
PrototypeCounterfactual |
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.0.10-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e2f3a0ec2a93a2da55a79eda7f770ad61af3bdc71d212e3c23f9ab292046521 |
|
MD5 | 6e96c8883209f56981a0f2306e307f56 |
|
BLAKE2b-256 | ed51832b240f8a1f6299336d0e5f58ae7d08d18c23cb3ad173bdf6a1560baa8f |
Hashes for wildboar-1.0.10-cp39-cp39-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47ce099babbf6fc46d0ceda653e73d186d98d463038cbe20959f7cd7e255eeaa |
|
MD5 | c4e0c1e586dc53512c142b3441bc4420 |
|
BLAKE2b-256 | 9aee6d5d4c5887a66a8e47925ef7bb2612a2c0e54ffaf0581ba5d5e5f819ef77 |
Hashes for wildboar-1.0.10-cp39-cp39-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31a3573466417a1f22f7b0a1a4def6d29a91a58c3fa25c9f8d7d4635be74db8d |
|
MD5 | 622ece1393dac46fc7aebd369781a65e |
|
BLAKE2b-256 | bcaedf2d82202375fb5fd98986c9aade3d17492c9ff1a87f8c0aeb245f1cc4af |
Hashes for wildboar-1.0.10-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36c85366245d2880f466cc1d4e9ab8e5cabe5cdfde211b43c2cf67e9c9f9080c |
|
MD5 | 052c22a609f64fc9d01c7906eb4fad1d |
|
BLAKE2b-256 | ff7773f4c65a586463632c8cac518b3253bf2b3841a80a3a53ebaf4cafb82cc2 |
Hashes for wildboar-1.0.10-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7942cf6f3173144d3ed914941e5b37c7a99670268469284c850d8615bab28d08 |
|
MD5 | d3c1599afe68b73c360701ea76a9625f |
|
BLAKE2b-256 | 5249df271f7e2c8888381da2fb669dbbf4eb4ec303e26b5329927ac1f879a82a |
Hashes for wildboar-1.0.10-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bf76b2703ece4db36499391e526dc2f0c5d4184ca4aea422d6eb769bf9e6964 |
|
MD5 | ea3a5a18c002aaddad32ea12a26b5e6f |
|
BLAKE2b-256 | 7263f65e78141a6586d6e8fc43534103808030b39d6d59fac0063b904e7bfffd |
Hashes for wildboar-1.0.10-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c3908efd96f4a48e8add04fe15d08de6495cfdeafb8bf89b6045efb9dc6479d |
|
MD5 | dfe2a9b1c1349170986fdba5d1144459 |
|
BLAKE2b-256 | d92af729a0fed651bb27d4055625a02b773636819ea854a75ff1ada7d9a26687 |
Hashes for wildboar-1.0.10-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef70793e638fc75c0ed2867dc682fbdd6afcd5d060111c61eba499eb719babf0 |
|
MD5 | f42daef6668d6d96087bd946f623f182 |
|
BLAKE2b-256 | a9697b9f8fbdc326de3d6539aca052c9ef0ed09003c8875309b12bdb7879d5ed |
Hashes for wildboar-1.0.10-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f3433fbc9ae69bb4ec16dafc0a00272e7378c6df8dd9de9105bda485e7cf04c |
|
MD5 | b37b2bf72fd0b80a026cfcd103913ee8 |
|
BLAKE2b-256 | 9e0223550e78c9aacf08573d8ee0220a742791cfdb78fd20775db7115e325cdb |
Hashes for wildboar-1.0.10-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b5db77a0065393a516fa38a36b892bfcf6738dc3b5ea24931934194083b7b52 |
|
MD5 | 1eecd04ee45bec55d0b6e18a3501f767 |
|
BLAKE2b-256 | 998227619f384d0418aaf633cf4c38d40a383d45e025ebf53725c8aaa5a716fe |
Hashes for wildboar-1.0.10-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 553bbc52864154879b57ffe51412742db2c79369d86f52952a02b72e8d804059 |
|
MD5 | 128a5ed850a5770bf49ef738e3230469 |
|
BLAKE2b-256 | 8605b0a8d91f181b92585a3be3329f06e78fd5e32c38d820e9ea3feac9a93232 |
Hashes for wildboar-1.0.10-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2552dc43fd687e4bb3fda365a439683012da9a538e1d4fc0cd740976c81e5fe9 |
|
MD5 | 3b54232720cbbf9855217d4930f8a499 |
|
BLAKE2b-256 | fd379c802570a1f71e7c5ab657e8d024f445b6c8e8eb1d72470b2715c988a457 |