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.4
- Current development release: 1.0.4dev
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.4-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd99d3e67dcc6e78fe4857789efef20236b651d5ec54f2bcdd246569244730ec |
|
MD5 | 8e3f41216f94defa7f38c7ae85712c35 |
|
BLAKE2b-256 | 624b785331f6f4e30b5855bd49df2fe35ac5f35899220c51d241b4c5cef91e95 |
Hashes for wildboar-1.0.4-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5de38c0672a536d9228708ef8c153a6489d05277e36a5d37c84df6e6d6ace01a |
|
MD5 | d0c6d8aee18eef3f05014863d650605e |
|
BLAKE2b-256 | 0df7a03edc47fd8a376e167aad54a63930dd8bb5f0417c74c227f47bfbd805e3 |
Hashes for wildboar-1.0.4-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ffd95c9708811f5d40bb741ce832e982da6fa0349e1e46e34b2cae3504b4007 |
|
MD5 | 7716a18894557507a661db2df6d54092 |
|
BLAKE2b-256 | 1030aa5257871d3c96352e35f825c2fa2736b15c0159147b512653cd7e0698f2 |
Hashes for wildboar-1.0.4-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca39bc15a27ff579f55323fdc3841260367088507895f672bed4aac8047d84a6 |
|
MD5 | 0647c48b578485717e65ebfa0e718411 |
|
BLAKE2b-256 | 277a117aab943b9243c9ccd41088f636d4cd72fcc4dedf1f3287ef488d411824 |
Hashes for wildboar-1.0.4-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43f48e45ebae8f9481e1b4c90ed51b35e4337dbc50abc87d1c0796648abeeb75 |
|
MD5 | 095afc18f04987277ab26c19f622c565 |
|
BLAKE2b-256 | dd8bdce9ec085056c4aaf8819daf1add7a614c2f045adc2a93209d2853eea327 |
Hashes for wildboar-1.0.4-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7033012e0a22d3fa00de040c774376b51fddd508fc1d90746481a2134e94756 |
|
MD5 | 561a3c3a2e57adac97e2409dbc7ac02b |
|
BLAKE2b-256 | fb9da482dee987c68a5f146dc16c20acb7cfd7d502524aabe00d93b766514b30 |
Hashes for wildboar-1.0.4-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29d185f6950b735cc1d1935ea562e4fd448c8fce553a540a758bae12e0b1220a |
|
MD5 | 273f652b5c5c4a11928cb7c5ec374eaa |
|
BLAKE2b-256 | aea5a36dd16f3fc23985df3dcd1bce4990596f936927565556f9d7ec80d094c2 |
Hashes for wildboar-1.0.4-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63e535101aad8568c5ec8f8ab453fb7685e92d26f45d39238ba140e3c8d29599 |
|
MD5 | 416a24f8860a24b94455ff1e81ea456e |
|
BLAKE2b-256 | 7252c4bec24a0028749e46dd587de56c30f83035505c725ce0bb22768dd1cf2a |