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.7
- Current development release: 1.0.7dev
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, 3.8 and 3.9.
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.7-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2cfebffaa89d5e6ed8a6e7e6a6926605cb3365e020d1421b738dbb8fc9749c2 |
|
MD5 | df616e65eba406345fd8a241bf3cafa7 |
|
BLAKE2b-256 | d39b3cedff9aae2c9a4b3f274754af3c37e56d27f6cf92ff0a05f2de11158cde |
Hashes for wildboar-1.0.7-cp39-cp39-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aca82cc2188ea024b18d72ad614f643300d268cd33265dbae0341267ce85c4a6 |
|
MD5 | 27bbff19f78c5fac79afec16fe169c03 |
|
BLAKE2b-256 | 529f06cc2062a94d1498d5635566956a845ec4fa03c1b494ea9831cd0eaa1a72 |
Hashes for wildboar-1.0.7-cp39-cp39-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69973950cb93747335810838bfdb405f449fe7850a18e9ca95e7433d59a655eb |
|
MD5 | b6a8cca8fbc933a1d8dc4650069372f3 |
|
BLAKE2b-256 | 4d3267eab834ef0cfaccab616a2dcfc6a74dee9f0ed340f3069263ef930e0349 |
Hashes for wildboar-1.0.7-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d66a1f09bf55704461c0b2b9fc8252212327ee7843317d6350eb4e41a22524f3 |
|
MD5 | dfbc1a12afcfe3144bf1a7ce790e29d3 |
|
BLAKE2b-256 | 981f88dee250444e6b5f6bce0524ee199cc0c44169f372f4317b5b975567a2b0 |
Hashes for wildboar-1.0.7-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e494bcc6f989fdc306a200a979f5165a974ae57c172fa3c41c8a815bf25ee60 |
|
MD5 | eb0f37738136bc0b779b2245a10050e4 |
|
BLAKE2b-256 | 2be6492d48dcebe29c420696d22c3e4876a3efb87d5fd417223c9371540a6617 |
Hashes for wildboar-1.0.7-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6581ce4250669ac0cf03dc816ce239f6037aa19bb16d5b19b9d108c3d84b2d43 |
|
MD5 | ed1455d05ff929bee6e5d71969292716 |
|
BLAKE2b-256 | e5bd250358f6e65445438010bc84b3d75c33365cbabc10d50cfa1cdcac576598 |
Hashes for wildboar-1.0.7-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed1875040b33aad4d7ef3ddac21cd78fc831bcda68227948650ce5d08be187b6 |
|
MD5 | 29b5bc4d9b548e3d07a2200710a8a72a |
|
BLAKE2b-256 | 9f10049f7c502660fb58738553616ed916958c29c313e303319a9b213f40b538 |
Hashes for wildboar-1.0.7-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a536c929417c3a8f32b299c7f4c4f1c6870161cdd82e9e3a4d099cc5cb5bb6b4 |
|
MD5 | 73f9ebd7150947b5bd3c469f4f89ac73 |
|
BLAKE2b-256 | 4b5686665c9965d8b99459baebfbba53bd2f6570c542b78a8d7e5d68bf84f7f9 |
Hashes for wildboar-1.0.7-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c6fb8ab0dee4bb1437f648a3ccb8b23c86ec5296a23f38077a096ffcc098d00 |
|
MD5 | db621ab403eb20250ad29a9c31605791 |
|
BLAKE2b-256 | f7d2aa427ad3ecaafae346901def0e35d2ac158b1cbc0469ceb13e8511239a93 |
Hashes for wildboar-1.0.7-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbdc7c8adfd9c24148392571ba33944788da9981a84d9fcb2eeef5a02357417f |
|
MD5 | 06a7ef6d116eda4678454b4d25f0a4a4 |
|
BLAKE2b-256 | 002f3ac9673f1f164bd4c046f94642f48ac5cf983c8afc2b3e83886b71eae608 |
Hashes for wildboar-1.0.7-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65592cce346a47115ff650e50044218d2b877b1abe23eee53fb1f967a300f162 |
|
MD5 | 585788c6b69c2851c8f1d6c3e19545b0 |
|
BLAKE2b-256 | 9cec3462b3c57f6d258bae02bfd989066863f8f569fffb0a69d238c10107a1d9 |
Hashes for wildboar-1.0.7-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 543676cde485e4d8fb8bf993f186ab9cd264aab404e11bea77e9d77c8c17067f |
|
MD5 | 9ab7197f23e370547dde9be3c3fbe20d |
|
BLAKE2b-256 | b02477637f3278a6d4a17399584bdef58178f376d31030948f083f6d7f4bceff |