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 |
Classification (wildboar/ucr ) |
ExtraShapeletTreesClassifier |
ExtraShapeletTreesRegressor |
KNearestCounterfactual |
MASS | RandomShapeletEmbedding |
|
Regression (wildboar/tsereg ) |
RocketTreeClassifier |
RocketRegressor |
PrototypeCounterfactual |
RocketEmbedding |
||
Outlier detection (wildboar/outlier:easy ) |
RocketClassifier |
RandomShapeletRegressor |
IntervalImportance |
IntervalEmbedding |
||
RandomShapeletClassifier |
RocketTreeRegressor |
FeatureEmbedding |
||||
RockestClassifier |
RockestRegressor |
matrix_profile |
||||
IntervalTreeClassifier |
IntervalTreeRegressor |
Regime change detection | ||||
IntervalForestClassifier |
IntervalForestRegressor |
Motif discovery | ||||
ProximityTreeClassifier |
||||||
ProximityForestClassifier |
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:
pip install .
To install the requirements, use:
pip install -r requirements.txt
For complete instructions see the documentation
Development
Contributions are welcome. Pull requests should be formatted using Black.
Usage
from wildboar.ensemble import ShapeletForestClassifier
from wildboar.datasets import load_dataset
x_train, x_test, y_train, y_test = load_dataset("GunPoint", 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
-
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.0rc4-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c2e117fa88b697c69b4fa43e2b76dab55c1a818781344a087d6bd390417278a |
|
MD5 | 692a3531fe129a3946f62d4e6d440676 |
|
BLAKE2b-256 | eb788b53048b8436692b942d113fde7622814d4d39863517460bc0137000c207 |
Hashes for wildboar-1.1.0rc4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6160b261580b1298f0cab80a988f8c73aae411ba4a426714091438b7d505f3d |
|
MD5 | 385dcc5a40905ab0e1a257b601e4a4b8 |
|
BLAKE2b-256 | 22c8b65f9d0dbbacf46ab7754a523c2ea3a101a781c22dfcfa7d26da0b67e748 |
Hashes for wildboar-1.1.0rc4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60456bba535be885fe092f494997f1ef22eda07ecab92d4286c646a4b2a84e51 |
|
MD5 | 1de1bb85200e75714394172b8f79c83b |
|
BLAKE2b-256 | f10f1af80534d1436612372360b6268c253393994f43e084cf573fcff5384c81 |
Hashes for wildboar-1.1.0rc4-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd28da7743bdd301161e14dedd87106205c9f72dabbe9f3344678159ea41dae8 |
|
MD5 | 9b0e32436c29195d600313576ae8d4db |
|
BLAKE2b-256 | 09e54dedda1debdddf9c2777fa1af1cc8bf9b3c35b6980a937393d6ef5cada23 |
Hashes for wildboar-1.1.0rc4-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d1f37d806af226a3be05e9add7f780a2f58b9432f4a64b9b7e03cd2eb3db3b7 |
|
MD5 | fb07d37bc7b74408ff9e870f847180aa |
|
BLAKE2b-256 | e1e4d8ab28c470d28a81d77474e2677967bdfc96c5718c070337e1fbff43b06f |
Hashes for wildboar-1.1.0rc4-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6568c9a4673bb3cb821476a4dee73c19ba2c3c911afbb6d472c902a093608c8 |
|
MD5 | 1d005af3aac00e102b61e1d252a67ecf |
|
BLAKE2b-256 | 4d0de4d8366445c3814ae0a920cd267dc41874babf408a6096203f87b50ebc61 |
Hashes for wildboar-1.1.0rc4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f3d3bf141b16a25989b9e92a0e17c64dd699d7641f36325b1c426b5047babd2 |
|
MD5 | 300f43fc1d76ebeab3fc7e727ecd4439 |
|
BLAKE2b-256 | 8d6f1c1c4ae610d1ab449d80e961506c87bbf6305158d2aad296d2a475100e60 |
Hashes for wildboar-1.1.0rc4-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b6aa19c24399e7724561980ed48ae7da864fda2883698c40bc6bb57441935fc |
|
MD5 | 48c9b78e6f6dc97f55254faeb6240739 |
|
BLAKE2b-256 | 941ad591db3e92c59d0720c56809b01493d939221803ecc2676fd1fb5750f5eb |
Hashes for wildboar-1.1.0rc4-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 565b6126de89c7f1adace6431fc4d6fbd64831ebd18a9a9a0d75b71d73b1b1f2 |
|
MD5 | 92b1cc16050d62799feb27d3d306db11 |
|
BLAKE2b-256 | f3aa1208f7e017ab3900510c49cbb1d7c2234fced5a46676142f68480240efcf |
Hashes for wildboar-1.1.0rc4-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 306325c4fac6b787bb2c905553525884912bfe348596e45f153313fc2b1a0925 |
|
MD5 | 39306293afdbd8497b1c1883fc722415 |
|
BLAKE2b-256 | 63c657e953c5a6a854bc95184d020375fcb26d06eede0b3708c812fe6d5e6daf |
Hashes for wildboar-1.1.0rc4-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 187a9a2e22e97216a4677e2454ff2943fcd9d42bf3046169ce4b7f9dca3eb6be |
|
MD5 | fd7309b0434b26a5bf0fca3c16e6c0dc |
|
BLAKE2b-256 | bff4f69a61b7a2f96b4eb62cc53ada7b1ebaca57de304ab7c7da501b29593bb8 |
Hashes for wildboar-1.1.0rc4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b8654177c96ab9438347397e42ee4e215589a7e2630606dcf8bf18f8300d659 |
|
MD5 | 264e6c90c3cd150a7ae67b08b7205327 |
|
BLAKE2b-256 | 83c0a7d03282edfb54dc72abf3ec5196d8171308fd0eb2f39c19e17e0384be06 |
Hashes for wildboar-1.1.0rc4-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2db7bb84d76fa1a93fe455ca61546d2842c89d638795736d725eef04f20a6ac4 |
|
MD5 | 13988ca15af43fc5f14422fc82964eaf |
|
BLAKE2b-256 | 3ca78e05c2342e65459fc930164cc70cc1af35ffb3469894c42cc5bdd94c3dcb |
Hashes for wildboar-1.1.0rc4-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c413b1a89e992c3966503b525198e1f0a7e261e11e39bd33a56aa434d5439c9 |
|
MD5 | c28d1cc74bcc40e807901eb7850d95ef |
|
BLAKE2b-256 | 7b60d4952c70fc3d3b0a449d50c95ddb3ca1938c2872c1da7b784a407a4808b0 |
Hashes for wildboar-1.1.0rc4-cp38-cp38-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20d94c7cd816f76ac1929195811065eb53685a3a854e73e493c94ac28880227f |
|
MD5 | 0dc68e45680921569da72f62919aad74 |
|
BLAKE2b-256 | d61c9a422b26c66a3570d90e58489eb02357cfce75ca76261f3ccd0edacf6927 |