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 GNU General Public License Version 3.
It is currently maintained by Isak Samsten
Features
Data | Classification | Regression | Explainability | Metric | Unsupervised | Outlier |
---|---|---|---|---|---|---|
Repositories | ShapeletForestClassifier |
ShapeletForestRegressor |
ShapeletForestCounterfactual |
UCR-suite | ShapeletForestEmbedding |
IsolationShapeletForest |
ExtraShapeletTreesClassifier |
ExtraShapeletTreesRegressor |
KNearestCounterfactual |
||||
PrototypeCounterfactual |
Installation
Dependencies
wildboar requires:
- python>=3.7
- numpy>=1.17.4
- scikit-learn>=0.21.3
- scipy>=1.3.2
Some parts of wildboar is implemented using Cython. Hence, compilation requires:
- cython (>= 0.29.14)
Current version
- Current release: 1.0.6
- Current development release: 1.0.6dev
Binaries
wildboar
is available through pip
and can be installed with:
pip install wildboar
Universal binaries are compiled for GNU/Linux and Python 3.7 and 3.8.
Compilation
If you already have a working installation of numpy, scikit-learn, scipy and cython, compiling and installing wildboar is as simple as:
python setup.py install
To install the requirements, use:
pip install -r requirements.txt
Development
Contributions are welcome. Pull requests should be formatted using Black.
Usage
from wildboar.ensemble import ShapeletForestClassifier
from wildboar.datasets import load_two_lead_ecg
x_train, x_test, y_train, y_test = load_two_lead_ecg(merge_train_test=False)
c = ShapeletForestClassifier()
c.fit(x_train, y_train)
c.score(x_test, y_test)
See the tutorial for more examples.
Source code
You can check the latest sources with the command:
git clone https://github.com/isakkarlsson/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 (Version 1.0.3). Zenodo. doi:10.5281/zenodo.4264063
ShapeletForestRegressor
ExtraShapeletForestClassifier
ExtraShapeletForestRegressor
IsolationShapeletForest
ShapeletForestEmbedding
PrototypeCounterfactual
-
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.0.6-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97f56a87e294ec048d2a2a4b71a910d693349b14a3ef22c061ba6ed2e2d0c0b6 |
|
MD5 | c7d149b5ce2224e51a8cbbc3fbc2f714 |
|
BLAKE2b-256 | d54e5e43baf69d825e4dc97af1dad6274baf3fc35a445da854413775a444e286 |
Hashes for wildboar-1.0.6-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eeb17b52df8d600b758ee7dce8f1d5af6b47249b3c8a706cf3e144ee062c450e |
|
MD5 | 5ae7d58867c94940203bd2771074f73a |
|
BLAKE2b-256 | d6de75cce862c07964b502497fc160a7fb0ca884123729983487f93e4c469f53 |
Hashes for wildboar-1.0.6-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41249f5bada1c175ebb9df3345ab8f74b5dd1a9e35923bdc3aa0906cbc76f772 |
|
MD5 | 7f0abc0bce60e565b612eac54997a30e |
|
BLAKE2b-256 | ec65251ce640129d5f8c191bb60c6ac1cd194ce4b0f89f65454a6fe76f71a443 |
Hashes for wildboar-1.0.6-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b4232ac637bdde219f9dd65e903144b93bf4e62b9bfe74bd6cffd3d2bc98d01 |
|
MD5 | 0989e44fc0aba01fc6c97bd901cc71b1 |
|
BLAKE2b-256 | 8946a716985d032b13cc46d1c58bca0c63b4b14d262cd6c13e7d1f361484f1b6 |
Hashes for wildboar-1.0.6-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da1c53d99a5b80e284d839c1b33668a3ac0e6c53052a4a647780efe03690dffb |
|
MD5 | fa35aaca7ca4f494f3b8bdc7fbbca78f |
|
BLAKE2b-256 | 33c57aafba25fbf053a53c9be6f739c4dc05cb925222ba358771890e7dabf181 |
Hashes for wildboar-1.0.6-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7d5e2982d4ec8fb4da936ee6d6c113aa3326fb08248886ce61dd4e50b7169b2 |
|
MD5 | fe411401a86eae8a632b699e033ce848 |
|
BLAKE2b-256 | d8323fdf3b93378868c20bcfbac98512bbddc7f426e601d8a0f3460f2079d915 |
Hashes for wildboar-1.0.6-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f524c9e8b6c1692178bb5c607bef871e031e8a131f0801995232fce1e82cdf1 |
|
MD5 | f3f23866d9ab7df4eb2b08e8dd13c0c0 |
|
BLAKE2b-256 | bb4a504c36fc9ffe078ee783af8f65c6813ab62b0d70f89fe173b6941ba34928 |
Hashes for wildboar-1.0.6-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9fdb3b9c050f71ba302b768ad839afc5d5bf17a26e894c2a942bbc38c156e4c |
|
MD5 | 771a1a7b1d9b3f4f1c4d8b6c30a2e047 |
|
BLAKE2b-256 | 208e4dce140c61d5915eaf814e9fde3704060495576b7ca17b9a967681060ff3 |