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 |
|||
RocketForestClassifier |
RocketForestRegressor |
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.2-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf919049b72035fb45141186358f9461145ff8d9e5bb31526716cabe787ea266 |
|
MD5 | a56f81df94c493fcdc0750f4ce820533 |
|
BLAKE2b-256 | 0234d17c0de08efb15521e83038156e984608c1653b9f9b7c2074da24259f28e |
Hashes for wildboar-1.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14f6ba578cf3f24bab0f7cd882f322a3fc6e4b8d431184d2bb106bbbbfb4c862 |
|
MD5 | 98b9fe805499abfc721d3b483a70fc39 |
|
BLAKE2b-256 | df6ac10ca78560786ed3bd748fca6527826c098ef8b537eb96df7bcc2c108b4b |
Hashes for wildboar-1.1.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 626a21db66cfbee0485618a77395e1a90df5d0eb296279a7b4b974b195f2f610 |
|
MD5 | 08e94982e9e43d3145462174b1941049 |
|
BLAKE2b-256 | 860b56e7a3beabeadb033d6f9131434d8d4a80a506009ce6e5265e05561b2475 |
Hashes for wildboar-1.1.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f84214ae24ab41e04a3a6fd5180e214de41e59bfb10ed6b78970aba32a49f09 |
|
MD5 | dd93f9b21b28f8984d012c075f5bca5a |
|
BLAKE2b-256 | 08c6971fb7e435a959f4ccb06dcd5d00a624c458e2e47effb3e72ad6d0d44e8d |
Hashes for wildboar-1.1.2-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b382df4c2fddb4314813174203216f06f08690637929b8e8034d64e7fa737ea8 |
|
MD5 | f3224e2fff530726703e550feed41f97 |
|
BLAKE2b-256 | 3050fc5ed33804a039ee07d29dec82a961e30b502b3c20ab6583e84079876698 |
Hashes for wildboar-1.1.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a6d31a7c798f313b9c59bbb5a03fcc3a303e730262760aea1e06dab218b7f23 |
|
MD5 | 81c74bc03350a568d9152c737f5bdac2 |
|
BLAKE2b-256 | e5b13dab6db9f5148065c6db8338224c257544759fbcc76c3531ab087c12f2ac |
Hashes for wildboar-1.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a3b57513fb1cf6de2d530a1f6a199e02393ee3ba235205f0c9567737c50ab01 |
|
MD5 | c58c14e61546be6c32b9f2a56c8f4f5b |
|
BLAKE2b-256 | e1267406e724cb7bbe9b1f23ff8d7e8f334ad830bc184459dc9c3c49c31d0127 |
Hashes for wildboar-1.1.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92e5112a15c0e3c09d553d2bcf0eb8ebf0676ac7e2a887649ce6c4698872edde |
|
MD5 | 002e975c207c8f76ae027f4261923870 |
|
BLAKE2b-256 | da5fa076080db50c9ad27d3ccca0f2aba8f79b1401c1d82b10cc4446d7454a98 |
Hashes for wildboar-1.1.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a42cccc888de98708dea161235d74a520fa54ce36713ec66159c471ade5d5f41 |
|
MD5 | a4941816222a9a18f3e4e490282a7dbf |
|
BLAKE2b-256 | 3bdd01d900b0a6178ce02b80e02440e235cdf8042e77c69379e0044609754feb |
Hashes for wildboar-1.1.2-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 851a32fda6ed5873348fdaa234ce4bf5f2fb04746052cea7c4b400ff730a9f65 |
|
MD5 | 4fd8fe323212085233b34ce905c84b15 |
|
BLAKE2b-256 | b1069a9d056e5538bc1cb8e90dc389f6140894d45ab94f200cca2b8c3a3cd6db |
Hashes for wildboar-1.1.2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea3a071d4d559e2675428fa530a98ca65ce70305c608e956af7958ede21e5248 |
|
MD5 | fdaa8c19bff679a52f5b184d7050a8fd |
|
BLAKE2b-256 | 3e6c0d1afacf8e33dd9b69a188b227c45b51e3367d5ca494400660e533cb0e57 |
Hashes for wildboar-1.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26d76738931b652b40319d09627389d434705b92756a09ed97fbf38fcb464457 |
|
MD5 | 5a79c2c4bc284f0be12d982c5500fdfa |
|
BLAKE2b-256 | 3bc1d0aafc48a9fe8c8985b06b19858c3f54387f657856674beaa02f906435a6 |
Hashes for wildboar-1.1.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcfd1e6f0b4f6885343988157489463aea5e48048a697f7fea41ee65c270ad25 |
|
MD5 | f983d0b8f219c50a7497c8370fa67046 |
|
BLAKE2b-256 | 96f8bf6a05048c2cde37a9190c90ab9ba76cea257bcf4b839a33fc608d8e0cc5 |
Hashes for wildboar-1.1.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2f896328c6cc8156a7d74c938265df1cb61e6403f3ff0bcb5ecd344cb4f33ae |
|
MD5 | 3bbd6f32ad8266259383877f379e02c9 |
|
BLAKE2b-256 | 6b3883ee735dcaca9802d340160cf53892338f0cf3204bba3217f74b370c831c |
Hashes for wildboar-1.1.2-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c00c79b713a1303645ec3271ba1bd1fd069523544d65e0e85d9cc5e3d1087403 |
|
MD5 | e95132355cf77eebd922a660d19d5c5b |
|
BLAKE2b-256 | 5e2ec5a070e1d75f02c9609adabc3b3fc8884587473d779e9a76a36640da5424 |
Hashes for wildboar-1.1.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8fc1bd018349e31a267d090ec9c359610e2e3cfd8bb6cb88c40add8f554c030 |
|
MD5 | be4cc15b493e49ea14855cd8675e6cda |
|
BLAKE2b-256 | c9494fbecb101322d3a1247c627f3ab3387bf1842dcf9dd8603872e1f0e25c9f |
Hashes for wildboar-1.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69374fe68f1c65576c66991c385290cc28b139f0cfe03d533fa9a617188c99ec |
|
MD5 | 1d9c245173a57ea6cde86ef06a00cab3 |
|
BLAKE2b-256 | 1095765c8afc4ccad970ddbd8870c764fd1afb01e8e58bcb0a28f35930b5ef92 |
Hashes for wildboar-1.1.2-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9d4e27c6dcf3ad368c247468430ba39218a726f45ced08e065af734e0df8c06 |
|
MD5 | 768eaa7f10ac39021a76b28636900f64 |
|
BLAKE2b-256 | 708625fbe527f7e57c830b00aae709964e8410fce3b66484de0038433c713bab |
Hashes for wildboar-1.1.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0cd8b0dade3ab1ee807664838bb1ed5a60e83938bf256c23eb15c4255274ac3 |
|
MD5 | ae1de25da9f0a3fd25e0bbdf5cfbee45 |
|
BLAKE2b-256 | 6115bcd6220112eb8762aa46fbbd32acffe228123c358c5f1b3129525ea8766d |
Hashes for wildboar-1.1.2-cp38-cp38-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 622690e4c6e6519d3dda0a17ab64e68c3a46df246920f5fed236036b69460827 |
|
MD5 | d5f07e8ba414f500fcf787f410e75f43 |
|
BLAKE2b-256 | 939ba64c309faa2eea9866235a8fbc9674869984d2b06552441268a20870635e |