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 |
ShapeletImportance |
WDTW | FeatureTransform |
||
RocketForestClassifier |
RocketForestRegressor |
MSM | MatrixProfileTransform |
|||
IntervalTreeClassifier |
IntervalTreeRegressor |
TWE | Segmentation | |||
IntervalForestClassifier |
IntervalForestRegressor |
LCSS | Motif discovery | |||
ProximityTreeClassifier |
ERP | SAX |
||||
ProximityForestClassifier |
EDR | PAA |
||||
HydraClassifier |
ADTW | MatrixProfileTransform |
||||
KNeighborsClassifier |
HydraTransform |
|||||
ElasticEnsembleClassifier |
KMeans with (W)DTW support |
|||||
DilatedShapeletClassifier |
KMedoids |
|||||
DilatedShapeletTransform |
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 Python 3.8, 3.9, 3.10 and 3.11 running on GNU/Linux, Windows and macOS.
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 formatted using Black
- add relevant tests
- add relevant documentation
Source code
You can check the latest sources with the command:
git clone https://github.com/wildboar-foundation/wildboar
Documentation
- HTML documentation: https://wildboar.dev
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.2.0b4-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fdafc35f72078f70688ad59d0e0e1a71436cdd8c0d45c9348a018db48475504 |
|
MD5 | e48f61b4d82194ebb3ce1418d48a4a05 |
|
BLAKE2b-256 | 7dd27b74814b4dbaea95e2ce3e6e28b76bb7094eeefdcb3043fb779fa3d3c5ba |
Hashes for wildboar-1.2.0b4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5838549d7a9dd6bf2b5400b31139d3d0834edf64ee4fc75764589405125966af |
|
MD5 | ca0822ec1d5ef230ffe03b99fbdffdb7 |
|
BLAKE2b-256 | 0c917f286772ad627c2afc6ae959f500d6f7ded17eeba1e9b873793eeaa84490 |
Hashes for wildboar-1.2.0b4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17dee39fe697cf1696914768a86680f9cd7907392c2ae400b73b9d8b06fab3aa |
|
MD5 | 544332b3b7814752ab31e2b338792e8e |
|
BLAKE2b-256 | 5ab4f915ef0f7fec41dda5a331441a54c8b97853f5397fad000e3f4c3e595a0a |
Hashes for wildboar-1.2.0b4-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 945f94be691887736084269b03be074a56521ab19609fd519dffd127ef1548e5 |
|
MD5 | d755b8b6b5d9bfbd947e933422b10c79 |
|
BLAKE2b-256 | 8d9286ff28253fbc17cffe459ffe3a0f4e93869418e4d9ffa4374096e9fa69db |
Hashes for wildboar-1.2.0b4-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aed3e8d51f60a7c7865ba3c08c7645c0e1639d78e9cf05464dddc4cf9cf75592 |
|
MD5 | a16da20901d7b9d5137d8cb45c501ff4 |
|
BLAKE2b-256 | 8fb0cb7f0215766413ed48693ba178e0748c2ffea8499b7689cefdc65241ee28 |
Hashes for wildboar-1.2.0b4-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c4c1e15be4e51793f28d15d049d38f4a3ac7f8a7a505bb9b7a57a7c2d2d5bbf |
|
MD5 | 28b1a5709e6a7cf19275ac02ea0adb17 |
|
BLAKE2b-256 | 7476276023973f2387267708191ce1bc788afc4efd6deb37d8fb1cf3feabd83c |
Hashes for wildboar-1.2.0b4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0442a169e6369f007cca767bb6a824ef1155a150dd4356a738d8cd870be286e1 |
|
MD5 | ba9cf33d2f43024d6b1da2450d020fad |
|
BLAKE2b-256 | 28c6f51def1c14ee488dc974584d667e426392a296a4230c376802a4c466696c |
Hashes for wildboar-1.2.0b4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c81cda4f4a4cdfa32612510133f5e5d8acc968d699732a131ca7bc65b7633830 |
|
MD5 | 6438f34a570c160a9f565861b8206c76 |
|
BLAKE2b-256 | e846ef02658ccc2191da834b07a1216caff409ba82179fac9396f45643a59ffc |
Hashes for wildboar-1.2.0b4-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc0364cedbd943b897a983f234d8a57b36a38db1aa6c1e81aab67b6fec8e84ee |
|
MD5 | a1bfe834c2d0d977c35ccb9392d3d4c1 |
|
BLAKE2b-256 | 3353a9fe58d7eb0ddbbabbf67aa17a5cb646a44600c2182ca80c6764bf8c6834 |
Hashes for wildboar-1.2.0b4-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d180b85ad1d5eeab3e51c9e9f9288fb4eadf15886f5d2d30e5db6a70ed53b4b |
|
MD5 | 68490600fcb5cafc83009adc9dac4736 |
|
BLAKE2b-256 | f0380e6aa4adfe02066ae2bab51cc5953b47026307d0f7fde4d958c299d5b829 |
Hashes for wildboar-1.2.0b4-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6aec147471df1878a618a7bea62149470bd87fc1bfbaf316eb229cab1994c82 |
|
MD5 | a3ca20748756402de445011ae6230cf6 |
|
BLAKE2b-256 | 3fd3f81173c63c694da8aeeca7efbcd533a2229b0dbca1331d46f006315140c9 |
Hashes for wildboar-1.2.0b4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e287b84a943a7f2f5810f0374152d9bec003812ef3b78b4328b63e3d64270882 |
|
MD5 | 08ffaab0974d37be5307586b4a06b06a |
|
BLAKE2b-256 | f3a9f14e468435ae1fe549a7b2ed73e469e6927e46776e866e34d688a6371ee4 |
Hashes for wildboar-1.2.0b4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36c9aa7cb3a51ed12018eda4fec971463ee197692d50da1e19c4e5975ec7dad0 |
|
MD5 | 1d7f8e1e9a8a537124e2bd1ce4ea4e91 |
|
BLAKE2b-256 | d6e80537884f5076ecdab7b836075a5f5d2c7a428fe1e09ffe3583cb490f1283 |
Hashes for wildboar-1.2.0b4-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 994dbfb6bcb092c973ce2333345b99ff5203aa02d6658eaab34988ba51381b89 |
|
MD5 | 4c89f4c8c792d08f45cee652da1e5062 |
|
BLAKE2b-256 | 690ad4f2c78af9bc8894c0663c076287c059302f3781f82ed2df87e7a76121d4 |
Hashes for wildboar-1.2.0b4-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f9dbfa2132219a318352364f7d70ded815d18ddaae072250c59f78292aa7492 |
|
MD5 | f94a1532a27f3ae1ff48b65d93b629be |
|
BLAKE2b-256 | 85f9d69d543338c6e07c56779f44f9209d710f77eaa0f416024b39ab7ff6256b |
Hashes for wildboar-1.2.0b4-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6812c0ca01107ff447fe16a4c5b6bc7976c029a0b1f5cbbad289609324a67d84 |
|
MD5 | 2e1163a9c5964124d526872a99642e77 |
|
BLAKE2b-256 | 3716f62de7527ab06699c4f846d12f7a27aef2e8aaecd7774500a3c77a780d24 |
Hashes for wildboar-1.2.0b4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b68919e293c22b8df201c769cea70cbced503bb2a8410347aa56fab5325c803f |
|
MD5 | dde22d9adcc04e0dd93be100305b4c18 |
|
BLAKE2b-256 | a7dc4f608040b42af7e8bc277b4e3f90905cf09e76a3bce9800da014a4c49c2f |
Hashes for wildboar-1.2.0b4-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68845ffe2b1a49bc99604416464de0506068ca7bb9ef69e68f706149d3929c60 |
|
MD5 | cd0fae6fd80f12136d02e5ba617b40aa |
|
BLAKE2b-256 | 5b2539c0f7564f1d4cff2f4567a3f8d78c90378a04883a4397148cde50c38a51 |
Hashes for wildboar-1.2.0b4-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f7f1d573066afc43c1445f92640028b592b69015959e828c5e3853aa7956c33 |
|
MD5 | 2f9ef20ca22636a7875869f0dabd8cc5 |
|
BLAKE2b-256 | 66003b0e3b3d23e2884e5d2173fb52b7592a724edb700c527ee52e6de1cd61d1 |
Hashes for wildboar-1.2.0b4-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0abf4c7d50b3a588073ecfbd57f0d31f3a285f15df9e86980d3f75eb3151a93 |
|
MD5 | 787b16cc710fb3212ce0e71f422b351e |
|
BLAKE2b-256 | ca66c7eb30afa88938b76a60356c9a8eae530aa250d749b2bfaed26746cd20ba |
Hashes for wildboar-1.2.0b4-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7aa759b5926684f7ce5fd8db4721eecc3610dc77db0f34142309aa0b85a731b3 |
|
MD5 | d583b64f2747beac08c0e2033ca51aec |
|
BLAKE2b-256 | 5354985e6481d8b281d22d2187cfc2df16af89cf0390e41be782b8748a0f6728 |
Hashes for wildboar-1.2.0b4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a89e17cd942a665385904f0c41b4408cac763c47d9ceca40d25c6b9880396d1 |
|
MD5 | da535393e54907021dc05fc00ec9b580 |
|
BLAKE2b-256 | 405c2c8be1bb4fb31480b1cd75ba0e3be988e56610c359c44df4ee3f6e0a2981 |
Hashes for wildboar-1.2.0b4-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | acd83226a976e43a4aa6148d94971d532b2e09a4453502058cbecad2511d176a |
|
MD5 | 4a121279ee1d823f1ec7c9bfc2b0447d |
|
BLAKE2b-256 | bf0441acfee444e32dca7e81cbd38037c0d5a31b71a7c768165848f28cf0fdaa |
Hashes for wildboar-1.2.0b4-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6728fca4c851fd6e21eeaaa143a988e1af314230f2bc7fdc10c6b4b2ff8599f7 |
|
MD5 | c30b5c74b19b9d20c20d0851d3a71bc9 |
|
BLAKE2b-256 | 85311a573639c3d6631e579fce2df9d622308bad3b87be9d6ab42419d61d446d |
Hashes for wildboar-1.2.0b4-cp38-cp38-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f36b46ca9572f7c49775c5d545b6215b3b9bf57e885e91bb0081cdcbed097fc |
|
MD5 | 5fb9759da384be5b8fc900929ea30794 |
|
BLAKE2b-256 | 6c190277be60e41176479d686df120627c72ab5817b0bc320764de08e142b0c8 |