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 BSD 3-Clause license.
It is currently maintained by Isak Samsten
Features
Data | Classification | Regression | Explainability | Metric | Unsupervised | Outlier |
---|---|---|---|---|---|---|
Repositories | ShapeletForestClassifier |
ShapeletForestRegressor |
ShapeletForestCounterfactual |
UCR-suite | ShapeletForestTransform |
IsolationShapeletForest |
Classification (wildboar/ucr ) |
ExtraShapeletTreesClassifier |
ExtraShapeletTreesRegressor |
KNearestCounterfactual |
MASS | RandomShapeletEmbedding |
|
Regression (wildboar/tsereg ) |
RocketTreeClassifier |
RocketRegressor |
PrototypeCounterfactual |
DTW | RocketTransform |
|
Outlier detection (wildboar/outlier:easy ) |
RocketClassifier |
RandomShapeletRegressor |
IntervalImportance |
DDTW | IntervalTransform |
|
RandomShapeletClassifier |
RocketTreeRegressor |
WDTW | FeatureTransform |
|||
RockestClassifier |
RockestRegressor |
MatrixProfile | ||||
IntervalTreeClassifier |
IntervalTreeRegressor |
Segmentation | ||||
IntervalForestClassifier |
IntervalForestRegressor |
Motif discovery | ||||
ProximityTreeClassifier |
SAX |
|||||
ProximityForestClassifier |
PAA |
|||||
MatrixProfileTransform |
See the documentation for examples.
Installation
Binaries
wildboar
is available through pip
and can be installed with:
pip install wildboar
Universal binaries are compiled for GNU/Linux and Python 3.8, 3.9, 3.10
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
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)
The User guide includes more detailed usage instructions.
Changelog
The changelog records a history of notable changes to wildboar
.
Development
Contributions are welcome! The developer's guide has detailed information about contributing code and more!
In short, pull requests should:
- be well motivated
- be fomatted using Black
- add relevant tests
- add relevant documentation
Source code
You can check the latest sources with the command:
git clone https://github.com/isaksamsten/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.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a59fbecebebed8abd52366a524f1bf5114e674e6cfd00a9d596590d8ec06de3 |
|
MD5 | 2d4e663847a9da559c396a115512d251 |
|
BLAKE2b-256 | b24678f9054fb9cc232357ef7242923225e7c3e284ccfe4e1942661433bbb621 |
Hashes for wildboar-1.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7e0fa32a00ce92ba4de3db401e88ab205c79a8d36a2f8e9f6d752e233be9f78 |
|
MD5 | 730ac37c1dc999c6e7292d6b724ec7fc |
|
BLAKE2b-256 | c04262f4b4040dbf19d03fbe036b326bdc3d69767de420559080a4d1960a1c4e |
Hashes for wildboar-1.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13e5f8b95869b18fd86daba1eee022bdbfe686ad897c42e3ad300b6258076fab |
|
MD5 | 1ede8f70495913cf6af90be7def8c546 |
|
BLAKE2b-256 | a0df387c0c08a80b8a66dfd9e409d7c757de48d4f72df6456c31aee6564ca3de |
Hashes for wildboar-1.1.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e82ed1e044de14238860cc390ebd4dd61909192234a70fbfcaa603104bc8ec36 |
|
MD5 | dc1b68f6fdaba8566110d3efa92f9453 |
|
BLAKE2b-256 | 929ad3cd45a533e0d391e31e3642e89cc6fe06a5c8a0352892f69530db0fd92c |
Hashes for wildboar-1.1.0-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ccf5ae904f92ea3f3be44e61997d8c332476a10cd328c1176a0d7faee3029a2 |
|
MD5 | d3c596645f06e7c30117c07319467f29 |
|
BLAKE2b-256 | e19cb47e95fc8d990c6ee7873f59c2bc2a8d77b74cca5a66f2f77fe041189431 |
Hashes for wildboar-1.1.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c85194b115434aaf380ed497faa0d324c12f94a616d5ddec4e2567cb15e2d565 |
|
MD5 | a9bc3011ed3d856d0e3998b52064af9f |
|
BLAKE2b-256 | d526d30b6a3f80fbc01875aa9ba8b6e8ff2c79ee4e69a0f5754d0966d803cd3e |
Hashes for wildboar-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ed6bb23d4eed85ae2b151e1e8ee4ab2b2257626d613a82ac605b93f9668c380 |
|
MD5 | dc99f6a281a4b5ad7641119d9bc220d4 |
|
BLAKE2b-256 | df1603f1c498b87723089dfdb9c8a702ea6cd775abcae9e51e792b5970f42039 |
Hashes for wildboar-1.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1502f6e0a9a0cc676f8014f9aa9976d02531b847b19e36d8f04c965628dc94ae |
|
MD5 | 66a0f94cb1ce14c8f3fa8c9720f2e8be |
|
BLAKE2b-256 | 6fe537ab259900ac145aac1f34ca9d4de022f533f0b54579a08bac6f020f6c9f |
Hashes for wildboar-1.1.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b95f27ee8bb8b0a1487f8e19f4a3c46da128f3ce84165c10eb85edc8ad1f648e |
|
MD5 | 7c92d8520fc0acb8f4da6c6147474b0f |
|
BLAKE2b-256 | 965a3c845d7f9b36a17dbfff1b46adbadca6d08a79132e01ebd63fbbb9fa5b43 |
Hashes for wildboar-1.1.0-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ed21a8faf62bc25fc1cdfc12fb1b54ce2c415b11a1da78352c232d2a1544f63 |
|
MD5 | 2d3b27859231a56f89944d04769e4615 |
|
BLAKE2b-256 | d2280a12a298a72f4c217f44122482ad8bc3503f82cdeda2099ba414ad267ed1 |
Hashes for wildboar-1.1.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c75c48445328ef97707c4eff853e93f5d3792761ab2249ac4b6c5cf62b56319c |
|
MD5 | 6a4014fcd9416adfdc27d5eed8ca89fc |
|
BLAKE2b-256 | 3ca470eb332fae0e312eca521032a14dc8f1460531b3acffca920d1797fdf27a |
Hashes for wildboar-1.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26aad4ef883dd2ff6e80f928c924d2baed453ca9d24395b9cca00fe8f77e6d72 |
|
MD5 | a78b7905966127584b3877d6e67e6bdb |
|
BLAKE2b-256 | 902a16c298d5dd2227d8f82eeecf6da492bf3425e41b2c5cf7fda27c67842119 |
Hashes for wildboar-1.1.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ea5b7d8a4d2f56b806a22c61feb01262b93721defabe0553e36499fdaafb916 |
|
MD5 | f7209aff9fd6760b148954d2d41f7a1f |
|
BLAKE2b-256 | 570e7bf4003aa4b9225418109c89588bb5f1d1b0cfde014bacd194b0f4db4779 |
Hashes for wildboar-1.1.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32c1f869692803b83547325629435488fc8d4a49eb171711d84c753f27a22b7c |
|
MD5 | b440525f121a855923d22051c131a136 |
|
BLAKE2b-256 | bf987943d832007035613d28904cd1a13fe64ba2d9ca729159ceabb01bbb82d1 |
Hashes for wildboar-1.1.0-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e090359025ce1046ecda095dc75eabb41855cde93e75b094c26c106d72e0daee |
|
MD5 | 5fc7051ace8f7367bb247bc00047b30b |
|
BLAKE2b-256 | c678a4aecbad182a1c51411748ae61f953b21fb816988041ce314e38a9f9570b |
Hashes for wildboar-1.1.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 980d9fb492de177c76ef5b93d83d02ee3ea32c1b0f1c333346fab9f13403b632 |
|
MD5 | 8a75b84af99c52dc06815e78d7a7f2c6 |
|
BLAKE2b-256 | 39b708a075b54a50dde90ed1d77b2b2b07b288593e4cb789a9fd1cdf05d68d0a |
Hashes for wildboar-1.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0e959c6c51cbc36967fd61ff787ea28e9b37f5ab0d02d8fc4eff7b1c45f49f8 |
|
MD5 | 24b9b5d8b42363e21184feaf686de72a |
|
BLAKE2b-256 | 70f6d1aa0eb5cd12d96f850b3f327896eff43027feb084d9214975b9355b9314 |
Hashes for wildboar-1.1.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca301a012552361c9f486c98912f6f63f228cfa334c34f5112a1f88e6644b21a |
|
MD5 | 473b6e4f644ec318004e8af4efbb078a |
|
BLAKE2b-256 | 4ecdb46bba7957a8ba70dd8f104433fd786156b1a90d430c24c7e5504cea06db |
Hashes for wildboar-1.1.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91cee15ea84a768781c01a97cb1574b5d2c1ba4526acf6c656e78d29496d29c0 |
|
MD5 | 6d357c4633edbad296d9d0d1f6482d07 |
|
BLAKE2b-256 | af16cc5c3d6b46088b433b253b17321b3bd41d39ec996df1bac62381c8e15d2e |
Hashes for wildboar-1.1.0-cp38-cp38-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c16c1e9e04ba2ccad85ab17528bd7b616cae2cc58c513eab52edcfa8bfcea2d5 |
|
MD5 | 5a2650a2cc6601fdb8ba75adb054640c |
|
BLAKE2b-256 | e2c5be5e3c9e2ba3ddc2c914a47f9524877811c276e1cb6c52cec43f137b95af |