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.0b1-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fca634b164efd5c8fb34f753e656f34648e930c353186d578b5c93e93387f66 |
|
MD5 | 1702b86fa555128afb129748e4ee6b40 |
|
BLAKE2b-256 | a5854e4ae6a33728dc3539f70e3d54f64b1142a3adae88ba9820ce8246039a51 |
Hashes for wildboar-1.2.0b1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b96c536c94028b871fcae586df8157f5d4dc2d598043747a0be2bdd2cad0b45c |
|
MD5 | b7dfdff8aded550606ce83e95829c7e8 |
|
BLAKE2b-256 | d91bfe3979a1da5e82d769d035ed2dbc3e32283876162578ed5802f9b82b7967 |
Hashes for wildboar-1.2.0b1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1efbde774ce69168c360a5493c7672c7bce4b62effd24ad1c70311cdbc85262f |
|
MD5 | 189e9506d593c19073dc357c5f289e6b |
|
BLAKE2b-256 | 7b2314b382a7d99c09ddd44b7a437f215c411d584ccdac007e39cc1a22974779 |
Hashes for wildboar-1.2.0b1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8b62eb9e57778e34ae8676f590cbaeb6c88a27a495c990629135a540a077e45 |
|
MD5 | 534f9b1220108126c6cf242f05f729f9 |
|
BLAKE2b-256 | fc223981eb8fda157b34269ff194c0e452feaf6fe4d1a49be6b983988c518093 |
Hashes for wildboar-1.2.0b1-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4babc2a7c643b942edb6fcd18c65223a4e7746e312e9d0fee6dd0484bc6e801f |
|
MD5 | a081485e68a6ac5370e64e42ff0e840c |
|
BLAKE2b-256 | 8f65102098d95bb27acc4b264435f45d61fa72c09c293534a0d1239822919b1c |
Hashes for wildboar-1.2.0b1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18d4a232e38b449eebe3b9104e9adc298ee51bdf06547279603ef6342ec195a4 |
|
MD5 | 8cc314ceec0a8a0b4628ea3a8f44b110 |
|
BLAKE2b-256 | b3ddc6e9d3d18efe49e13e1824a577f43f0a1870d9afafd869e0e956f7710bd6 |
Hashes for wildboar-1.2.0b1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee7a0a1248744c142b77af29f8d77be53933c442ca9b564abdf5678bce50dd78 |
|
MD5 | 53d238d2fedf008a2c6003cddb2f6d6a |
|
BLAKE2b-256 | 5fee05c24b9897737df9529299abbbdfff8af1aef68bef6bacfbfc9915f53f3a |
Hashes for wildboar-1.2.0b1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e09cc4c9f6b5eef9420182840d9aa4f470be51b72a828404a05ac844aa01787a |
|
MD5 | df7ccf0ee45d2fc24ad9e25eeb9afa1b |
|
BLAKE2b-256 | 499dce97607c0ffd8f8e1c7687fb756eaed94b65a5a141ac584c2d55712c2f33 |
Hashes for wildboar-1.2.0b1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dc5a8a34843b10ecfb22349facb207d19bfc477e8b72e0c5a887206420ebd44 |
|
MD5 | d2c2669acd82d6be54f44c9da74a62f8 |
|
BLAKE2b-256 | 5cd474127da6a36e2eaa17c28d385d509a5f725fe14842f7a367a2c29787c64e |
Hashes for wildboar-1.2.0b1-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d7dfe359d76c230a0a81b2a44e5b281a57e947a47e0497a5f7a1dc06c2f0d50 |
|
MD5 | 2b5ce27eab399d66658a589b3fb11dd1 |
|
BLAKE2b-256 | 4baf6ffd02c4f9fce5c6d532c53dd216525eebe562e59eed17513109755ca5d7 |
Hashes for wildboar-1.2.0b1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c47442eeddef3020614602b9e157dde4755186b9051390a8d959aad3347cc28 |
|
MD5 | 9c9428dbf44ae3f6b6887046d6fcc95a |
|
BLAKE2b-256 | 5e1b0ac0c3d99b3c59037329c70f73b6122baf1cf5d62dcbdc7e2e1818f1520e |
Hashes for wildboar-1.2.0b1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c85b4a3629bcea8a8fb561bb4d096e62fc7a6347eb4523e747bc56d13362593c |
|
MD5 | 58dfed2650c5d7555e494e5758e2adb0 |
|
BLAKE2b-256 | 8e83c4e7fc0ef469cf7842fb5036fa3fafead7e46a0517f766b11662cc832a1e |
Hashes for wildboar-1.2.0b1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dba79c0368046df19e944c5f786629f878fe09ccf73b91e95f7e4469c75ca413 |
|
MD5 | 916f86637297788f1e2ff2380a519fb1 |
|
BLAKE2b-256 | 104ff37cbb56101c6734b352a9ad3b58adcc513da15aa8916e0ac589dc0c81f6 |
Hashes for wildboar-1.2.0b1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19b099e9092eb2b1a9fa1826651fa7a8d15364dadaf301d82bd379402ea48a9c |
|
MD5 | a0062b586b11a09e4b50187ba71b6748 |
|
BLAKE2b-256 | 8be3eea353ecbf7b84fbd5a63d9541c29897c15616db9ea4d6ebd55c1ff5b3e9 |
Hashes for wildboar-1.2.0b1-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdc15ebddecaafac8887c4008c5a821706b712127213f11eacf6fda00b4f6672 |
|
MD5 | b24bf5df5538533eec5d31682585cd28 |
|
BLAKE2b-256 | 2eba5f16789aa44a7dbbd590057144fc720bf4750c7386b48bd84bca743cdb19 |
Hashes for wildboar-1.2.0b1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6eaf35cc5847c67a82fdc4850612be2fd95470cae2a8e3e8773cfaaae1372a54 |
|
MD5 | b23a6e8aa97a39eea3c3bfea772c48ae |
|
BLAKE2b-256 | bfe5e075da65a0d85b7d5b43a2ec96b36f08e346fa2acbeb8752c4537ae0ec8b |
Hashes for wildboar-1.2.0b1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0562aff9c1080d84043fc353315c8728f7d01a258c11596da0dc2f591ebe79c |
|
MD5 | 1bbd23abd569a88eea789685f5a8d8dd |
|
BLAKE2b-256 | d06a69431cdb82df7e7be7b9ac1c8602a7ff9f2fa22fba453f330af5b8cafef2 |
Hashes for wildboar-1.2.0b1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c31fd5612ae2692e9a76660f4da346523ccbd23fccec532ebc394d0016e3f85d |
|
MD5 | 3c9f251abfc0267544cb3bc84465f3ac |
|
BLAKE2b-256 | 924d88a67358e02ac7feac92327b7e96463de27393ee2c287cc2abb0846fd1b4 |
Hashes for wildboar-1.2.0b1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f13d369f5af3a7e59ffa6ea673cdbbbf0e19e892b2565d16e19e67961b090d3b |
|
MD5 | 6e46322760b3a05c1f175bd361476e3f |
|
BLAKE2b-256 | 4ac2af8e39bd0760cc8a932382ea2150ca6181bfb446f6816d385c1da595f1e3 |
Hashes for wildboar-1.2.0b1-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4529556ac446a24aac3c030763191e38911c4cfce3c254a1c0292d519d2a22ca |
|
MD5 | bedd2570b4996acafcef39651234d6da |
|
BLAKE2b-256 | 5b4d0342fc37fadd2c6d7d610d883bff58ab419d2434c74e8a135d7f8d773778 |
Hashes for wildboar-1.2.0b1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7a82527679acaad9b635474cb9ae99cc1598e7b73ec184091ee2f9b4c2e5d95 |
|
MD5 | d5d5060e6cbb822050b80096afdb6b41 |
|
BLAKE2b-256 | 364a65ddcc163087243641dc18d2394376303a7520727b303cb2f9d5d61803f5 |
Hashes for wildboar-1.2.0b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fb72e25f6492238fb6b0cc1edb30f647c48c553d9a404119808759ee4d7010b |
|
MD5 | 98c6c7b74f1d27e11eb367ee420d335c |
|
BLAKE2b-256 | 70f6df6ec31c4f9c90ee6c091e47cdd54db568e401fb49b60d4ccb566180b0ce |
Hashes for wildboar-1.2.0b1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c41652d836d3949e45b4aa91efd085bb924ad6ed70c6a7d3443ba9bdb925e382 |
|
MD5 | 89856755788624c6cfeba839de294918 |
|
BLAKE2b-256 | 322062dcc25c4b398a5987448e117c58d10189dc5a6391fee0f874bbdec7c07b |
Hashes for wildboar-1.2.0b1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c241cb909de23f83b152261fea5944cddf514211e4121e452224788bb4f0070d |
|
MD5 | b1a9df19845295152fb7eb8d9eafcee5 |
|
BLAKE2b-256 | 0b74a50e7c85bddeb8cc72f993dcf434c9588132e581b0f06460314a82ee6ed6 |
Hashes for wildboar-1.2.0b1-cp38-cp38-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 178851ebd56107e29d28e41bf2e6c7b932e30011d0a3b79fb9b7ffa6876a6fbf |
|
MD5 | ed92b617d4d41ee6afa5432bac9fec45 |
|
BLAKE2b-256 | 4b0c8478f8df206db36d055db4c343c0899ea344914d1e7294fdee10c7dc840c |