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 |
MSM | MatrixProfile | |||
IntervalTreeClassifier |
IntervalTreeRegressor |
TWE | Segmentation | |||
IntervalForestClassifier |
IntervalForestRegressor |
LCSS | Motif discovery | |||
ProximityTreeClassifier |
ERP | SAX |
||||
ProximityForestClassifier |
EDR | 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.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90b034f04f29b3c807277386ee50f1a36067022a585a6146e9c5c5def0191c2a |
|
MD5 | caf615b6f18dea889a86116b24e6f8c4 |
|
BLAKE2b-256 | fc7df08d078aa303a22cc48689a29dae609bc9b9df01f1d43943d73130953810 |
Hashes for wildboar-1.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05d653b0599221f6f608c19dc4c0429d7669f868f255d8072aa3d0516fb41102 |
|
MD5 | f45b3825765882ae28613e1101a018b3 |
|
BLAKE2b-256 | 630cd89a766628a6b117aa5feab031283f9418296a2469041c45b58b97ed1272 |
Hashes for wildboar-1.1.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 229e2ccd58d4725c33bd64d70c8ceb223f21e4bfd6c74045e97da12b967f12f3 |
|
MD5 | 289b76c1638dd5b56b31629d7d0b2f5e |
|
BLAKE2b-256 | 5d87f1e4fabcdea5f0c68a2962ef9ab11f9c186de6ca1261ac735b4dcd57df4b |
Hashes for wildboar-1.1.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abecbcef268d3cb24eb9b72fe11e86dcb80e17aa48e43d7f57138ac661bc5b1b |
|
MD5 | c3bd6ee27f14f9b53b4f736e167a4bea |
|
BLAKE2b-256 | 9bdc7b711607d45707635f5e171dcfcfd24f3056fcf87921f9b79fb4d07f6a3b |
Hashes for wildboar-1.1.1-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57491f74c39b3b85a726e0d27b0a3cf378e1ad7961e4c5bef706638d3bbb269d |
|
MD5 | ded99d8f0747880772b64a2c66a9b238 |
|
BLAKE2b-256 | 0c72e68e7ac26a3e6ef2d9457feeef574c6441b314a28c33d1c5231210723083 |
Hashes for wildboar-1.1.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34e34758f317cafaedd6ed8f51a86569eb338dcf1e559375f7fec186683804a1 |
|
MD5 | a45c0cd767424879199532a75b40abb3 |
|
BLAKE2b-256 | e33d1f0a0e42f5c4a398aa37c6d9f5d5762f2187911a7d28ef20b4cb6b84964c |
Hashes for wildboar-1.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be68366d215a132e93852fc3ddf087884795975174497fc1a8d03b6d68485527 |
|
MD5 | 08400e7e7fa86c7bd85bcffa332074e7 |
|
BLAKE2b-256 | 52aba53c9003101a4e9fb7c0b2b80e07ecc7828f6a07756dad1e330a8d276839 |
Hashes for wildboar-1.1.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b22542d76debf1f750379e03ced87bb2f5460010d0e220881865d6cc75a6b623 |
|
MD5 | 47edc81a0563d8c4fff506cc05cc176a |
|
BLAKE2b-256 | ec5251d5d30af9ebd24df2fc2899ba49297703108ea307125d84f4ab10db4fb8 |
Hashes for wildboar-1.1.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2ddb4a6396f9fca16baf4f365a0755e0ab2937449fa32c6fbd1a25572c12ab7 |
|
MD5 | adf1fd3ddaa435b4cd31d0dad1488ea0 |
|
BLAKE2b-256 | 050b9eaffdb98465a38831b6d9aaf6e2e8ad699365ae8003d510bd376f6e346f |
Hashes for wildboar-1.1.1-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25b40b43c76f53077ee3b1cbb86b9e668210de6216e9ec3aa41979a57d668ff5 |
|
MD5 | 56c88decde5668dacf9ed127654c59ea |
|
BLAKE2b-256 | 0418fbd702fc6934e44981b406958cadf3ca3d7564e6792f82de34fd39780f52 |
Hashes for wildboar-1.1.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61f7ecfc8c9c32a16c3f92075ea60b3f4c9e9ef38f058dd2daa5b14491cc1925 |
|
MD5 | 613cf286e0c894d12389b101f11167cb |
|
BLAKE2b-256 | 9ae60b291a9c8b28d36fb7b6007a63808905710e2e0a0ce042f9fa1bf191a129 |
Hashes for wildboar-1.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cd78315eb36679259043701a1f47dd67e3cb379c17d63c3c3c54a35ffa73330 |
|
MD5 | 4955a726dda71bf70cb552f20c14e32a |
|
BLAKE2b-256 | 41ae210cd19d067ebfb4dd29b6b88436608f5fd2dd5846822efcdef1801facf0 |
Hashes for wildboar-1.1.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8d6a3b2b713365d2fd52830d1a3a8dc4d2599cf5e6873873bf8ca0cce4c448f |
|
MD5 | a8167ea19d0eed57867c02e0209149e6 |
|
BLAKE2b-256 | ae2369ea38fd5771e569e427ecbd8b933e8998c84607655642b15255ba9e994a |
Hashes for wildboar-1.1.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ab85c5dbbe6b171463013f0ca62a25bc1e14a9e2ffba7af71de732911fc125b |
|
MD5 | d349e4ef994d4683e26374aadea94137 |
|
BLAKE2b-256 | 1df4464462b64dbcc5d080bd97519ace26cba13bb9a0be7d9c7db6b71050adbf |
Hashes for wildboar-1.1.1-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a2f99fa1aad2c98766bfd46f7b58b5c7680b975633a4b1d6429e0d0a3e2ac00 |
|
MD5 | 1412200f37391425cd5b7f4571ed9b9c |
|
BLAKE2b-256 | 62671340770f36fa0e72bc24abb96e22757ab38832c839db6aa4331f2af6d218 |
Hashes for wildboar-1.1.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09e6448b3c74ee36248f8d813d55e384395b4702f7e31e9edc40e392dea8a33d |
|
MD5 | 628553205115a394591bc399037c85e8 |
|
BLAKE2b-256 | bc744180696e2b0c009c719baf29cf8aa242a371353c73a1bd9afeb3975639e9 |
Hashes for wildboar-1.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cadd842f5059e1d6a08bf5f42d217b7e648f95fa43aa9d5c99d8573314d57792 |
|
MD5 | f8ec04bdb16cbeed0bc4bbb4d7e06ede |
|
BLAKE2b-256 | 3766d4cb2839540b420d34113cc9468ca4e8def7cad8057106e343c1bbaebe0f |
Hashes for wildboar-1.1.1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 678bf96edbbb3fc510c17de26aae9c693448d1ba2f715b88634d59285f69b0ee |
|
MD5 | a561020575032e266e33bc4c63e5f017 |
|
BLAKE2b-256 | 4d4c4c0d6dec2c54e115eddad069126f892efeb4054870b0eb24eb195a4783b7 |
Hashes for wildboar-1.1.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c6239e9fab2576f1229ee397a7b4ae958c94ae70368b7deab4b6ab6b68dcfe0 |
|
MD5 | 58f389ef23112a472764b3d8cf3b3d58 |
|
BLAKE2b-256 | 1e059fd62a12ad1de824650279d651d37291786bf45074be97b8779ab6435485 |
Hashes for wildboar-1.1.1-cp38-cp38-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c65c2eb6f80ef621c52ece9648bbfb078ef4d1696e5803ccf9b931d0a6e0064a |
|
MD5 | af9a7b79180580ded4e041926878dd4f |
|
BLAKE2b-256 | 09e671ad98332b611bde3a514596acb47b31a7653701627f6af626d33c459d67 |