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.11-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b781341c26cce7104fc55f03e2875ab20a0669e096e0eddcd48ef53354ccffb8 |
|
MD5 | bcf4cb4a8d3ace49b85c22b26728d1f3 |
|
BLAKE2b-256 | 395283f98d2bd67e39fcbc4199fc15e16f1fcadc97f9651e40decfd5e3d69a51 |
Hashes for wildboar-1.0.11-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57901cb0fe1ab905ccce20c63566552eecb8d95fe4f6899d0a6227c8e53e4031 |
|
MD5 | 6c0d0d1c2251e8c98b7acfd91862d366 |
|
BLAKE2b-256 | 7b70a5749411afa66a3251f04d91895b037068949f23ab40b1d3767af13882f1 |
Hashes for wildboar-1.0.11-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f25f6bd1f3c9b873d100786fa51bfaab5ac8690171895dda480d0e772348c5d |
|
MD5 | fca56509ec23e6249a6f6a15fce8de5c |
|
BLAKE2b-256 | e463d686f53760e7292236cd46fcf6ba66d4bd3ddf092c0262f6493ce0f12bde |
Hashes for wildboar-1.0.11-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1620ae4816af3896b429f74fed9d6615c11c785c504fb3bd445c81daf450703f |
|
MD5 | d343102652c67fe78360ecb2abbc7139 |
|
BLAKE2b-256 | baaa406c3fd417cd4e79c0944874338ea785c360241321592e1cc958c90867fc |
Hashes for wildboar-1.0.11-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e1a4edc1dd46d3d41340a6c9727fabd6d2424db441c2860756688a2cfcdbbb9 |
|
MD5 | 0797a402619b26158283f2effe13282b |
|
BLAKE2b-256 | 8075c1d4864f7af490f2d4237ac07bf24c23ef60a1af11bd22ebedcaf6535094 |
Hashes for wildboar-1.0.11-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 129b9e49d4698d7fd9206bfd0c2b1b4405a80ecb8837eac1a32eb416bb524f86 |
|
MD5 | a0c4a528b5c3726a52158ca68f4e4530 |
|
BLAKE2b-256 | 3b2386f08cfd3719054177481f9365e51a47bd351f07a12f4845cd14e69ffc23 |
Hashes for wildboar-1.0.11-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6b3d7d2c028313962344db029a838545a4c4f5a1b702b13e57cd208741433a6 |
|
MD5 | ea6b21f5330b12e1dcbf505eb393dcaf |
|
BLAKE2b-256 | 51c46fae1035163f27c1487a7a18e8daa5e076d6f8024a98361789943880ba67 |
Hashes for wildboar-1.0.11-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 725f8ebd864ac2f6f07bca62541cec37021ffd50f4e37b97d0f188c23fe03037 |
|
MD5 | e0201dc26fc54509dd444bac5f186189 |
|
BLAKE2b-256 | 06eee165034da1bc12f34453506732ecb89e174705bc2179c89737abc2284355 |
Hashes for wildboar-1.0.11-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b90c394592c0505fd8ad3b4f57b19f3a31d06589637a104906b37fdb44ef2a57 |
|
MD5 | 88eb3b3a69b41732b43a3eafc28a49f3 |
|
BLAKE2b-256 | 0ac64445c6dcfa58adc9cbc2d45092e67376a8ab545eaad6d4e8d0d821412a88 |