Time series learning with Python
Reason this release was yanked:
source build not working
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.5
- Current development release: 1.0.5dev
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.5-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 246fa69b24ff6e360c6cb0f26b9d16fe5ed72878354e305b0f9e073cd5b30ef7 |
|
MD5 | 03a46400d5a46baedc5dcc854059536e |
|
BLAKE2b-256 | 2c6fd3ec32727ed6b2b1b70bbd567b67ce01161d69fa7f7ffb9af1e641da708c |
Hashes for wildboar-1.0.5-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1219d312378f77d360c78623671b0ef76ab460a494148b2b59ce4ad24ee8474 |
|
MD5 | e930b0f8fc9e517deaf8a8f73f96db6c |
|
BLAKE2b-256 | befdbf99749ab58e58e50f7b409ec2544124842d8a626a029c07e38ba5fc9498 |
Hashes for wildboar-1.0.5-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12ac97ae05b14b5df14b5021f992429ac1a9012fdff6b933940d42b5ccef3700 |
|
MD5 | dc0c6e9193e1e7ec8431cfb70d95c148 |
|
BLAKE2b-256 | 2d3e21bd1fd97a73da859a3dc80a0631247460d22e3eaa71688d1207faf28886 |
Hashes for wildboar-1.0.5-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee8ee97341259fd56fd3c9272196c816f656e1ebc514b35b8df1f725e59666cd |
|
MD5 | 7cd5447028c06a6bbc8cd2680dddbc10 |
|
BLAKE2b-256 | b318d7e5aa4e338f853f8a0ec7a099e751a0334ed05f8862d4b6c2813dd98662 |
Hashes for wildboar-1.0.5-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c09ef249e9cde7803c0407de82bec9fb0d36788b1568a410f21f507cfa1c350 |
|
MD5 | cc20eb056d7f3b9f002a6b29bcf0e853 |
|
BLAKE2b-256 | ee323a5806bde6380fbebc98f2bf6a4d274f6c74ff1aa09d7fc67b777dbde1fe |
Hashes for wildboar-1.0.5-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b89bb2518eca5ef0f0f8266d1af4464e261cdaf5e3048f5b14ba3cfbae97194e |
|
MD5 | f905163c324309328d9a539141d2674f |
|
BLAKE2b-256 | 415b5b65be5cfd7355c96bf2fd7b0e72190c1c05606fe4abdce989d57beb43f6 |
Hashes for wildboar-1.0.5-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05faff5742c7a7b75148216486f2f90d7314702321f1e0ca46b33459a1dd2aa5 |
|
MD5 | 7b70f69d806499228a3e2849c5ce1d46 |
|
BLAKE2b-256 | 7ad9ed4e8bda2e56d11ad685048a2f1426f8beef16f60041f8a878cd6b989892 |
Hashes for wildboar-1.0.5-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0dd730c1912db8571cdbb7790406cb0038cfa5f43ae065ca5c83871e35326a0 |
|
MD5 | d578eeece05023311f5a4a6c064ee91d |
|
BLAKE2b-256 | 09bdf37f2cbd0025685b20a08fbd402f1b4de5f167dbb44fded20a2ffe673296 |