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.8-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd2779165dffcbdad140d6a523dc7251a535d0dcb4bfff609ce0d3790421da0a |
|
MD5 | 330cf3b18ad2b2e9d418922d8ce54b30 |
|
BLAKE2b-256 | 3d0ffa8f3d885daf5a4ecc8fda1a7b82fc87a105dad77636bf30e5a9e6200335 |
Hashes for wildboar-1.0.8-cp39-cp39-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38014b27033ee78fb4dc2e7ebe263314d41c95d3dcb9303275eb0c0e9842219f |
|
MD5 | 4cb86322573a1e06607900cefe12ffa4 |
|
BLAKE2b-256 | 3067810db37a29fb487d0e82da00a7c025661877699a695cf732c062c3f743fd |
Hashes for wildboar-1.0.8-cp39-cp39-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a72ffb59f9cca11b5ab257817b86e6e61d8bb7fdb002e3c4d0d0d11de9a14633 |
|
MD5 | 641a9974f342d91f6869793812e6f64e |
|
BLAKE2b-256 | f76683c91c33af8cbf64cfc7cbfb86fc750ca9e309242a1896513a4552df8277 |
Hashes for wildboar-1.0.8-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 927d524de66ae1ebcb55f7e8b58e8fd7772170d75af34ce404ee5c33683ed307 |
|
MD5 | 670729efd39b0333898290f446c039f9 |
|
BLAKE2b-256 | dfa9c357d4a2ce5d56ce6d1e7561c504a3f7287eac2bb8c012c972af4d13c509 |
Hashes for wildboar-1.0.8-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c4686175c09b1267eba924af2abd08fcf5db63e08c39fcae96456cf47896651 |
|
MD5 | e0c11d10c6cf9de66365c9a0714474ec |
|
BLAKE2b-256 | d85411c629c928fbaaf0b757d9e77dbaba960679f648899472e064659e7da8d5 |
Hashes for wildboar-1.0.8-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c494167ff51e9a095a6792c523d22f147f107f13e7dcb4b6fff501294f1083f |
|
MD5 | 073b8fb1a60b9c65e197f2623c9b0460 |
|
BLAKE2b-256 | f06dc82e65f00501f781a832e63bad2557f5ad42ccefa2f40b09aed6ab4e3860 |
Hashes for wildboar-1.0.8-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38071aea1f03265774b9802bc331057b5422052e5754753c8c266b28dad2a708 |
|
MD5 | 396d5b092b965817ca45ce003f06c6ca |
|
BLAKE2b-256 | 7c02dcff94b50bbd802252166e5be9667cd9ec60972e8aa9ff73bcffd004b4ec |
Hashes for wildboar-1.0.8-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25c3fa3b611498d27e89f9822bb07afd7d53e979dbdb9571f465e335abb1f24a |
|
MD5 | b3d266ee9272c81dcbc0daca2cc432e6 |
|
BLAKE2b-256 | 5accd884c3d8e9fba336849e23e0068b6517c043dd4be6d8701cbc2ca567558f |
Hashes for wildboar-1.0.8-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7d099232d274e44b69eac5d29179568f6404277623f29bf00c19c36132da3ec |
|
MD5 | cf21c69cbc9c6336d050c7a5858048e6 |
|
BLAKE2b-256 | 53cd6d000187b91ce8d6413c9e1056e12dc0c7f2acf7f1b8e7749b5d0415159b |
Hashes for wildboar-1.0.8-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4161074277faab0dec8d306520dfb944b497da46e26ee94fd294b7397d93a793 |
|
MD5 | 4442a3e6d09c6764261b580e04d219ae |
|
BLAKE2b-256 | 383b0de479c42706b968ea98a58ba272c15f7c0e552e80bf2e3799cf39228585 |
Hashes for wildboar-1.0.8-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4146bdd41ab5af5ee0f40b1ed7cc8cc62f2b1915a95c6dfafbb8e39cadec65e |
|
MD5 | ebc5c0e79311e75fac107c522c288f1d |
|
BLAKE2b-256 | 074a65bbf48bbeabcb609e00af9d6d1e282c501b9a4cdf33ea52aee7c413a41c |
Hashes for wildboar-1.0.8-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9eab228f81d6d94c20b01f326d96d804c52d663dae8013856c9b2d5ab41135c |
|
MD5 | ddabe62867f79f84366fa315f3212514 |
|
BLAKE2b-256 | 9c602a40f9f6bdb3f8e519c7e9db847d2b6bb91cb257bbcd29abd5c11bd0615a |