Skip to main content

Time series learning with Python

Project description

wildboar

Python version Build, test and upload to PyPI Docs Status PyPI version DOI

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wildboar-1.0.7.tar.gz (67.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

wildboar-1.0.7-cp39-cp39-win_amd64.whl (305.6 kB view details)

Uploaded CPython 3.9Windows x86-64

wildboar-1.0.7-cp39-cp39-manylinux2010_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ x86-64

wildboar-1.0.7-cp39-cp39-manylinux1_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.9

wildboar-1.0.7-cp39-cp39-macosx_10_9_x86_64.whl (342.6 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

wildboar-1.0.7-cp38-cp38-win_amd64.whl (305.3 kB view details)

Uploaded CPython 3.8Windows x86-64

wildboar-1.0.7-cp38-cp38-manylinux2010_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

wildboar-1.0.7-cp38-cp38-manylinux1_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.8

wildboar-1.0.7-cp38-cp38-macosx_10_9_x86_64.whl (334.8 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

wildboar-1.0.7-cp37-cp37m-win_amd64.whl (301.6 kB view details)

Uploaded CPython 3.7mWindows x86-64

wildboar-1.0.7-cp37-cp37m-manylinux2010_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

wildboar-1.0.7-cp37-cp37m-manylinux1_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.7m

wildboar-1.0.7-cp37-cp37m-macosx_10_9_x86_64.whl (331.0 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

Details for the file wildboar-1.0.7.tar.gz.

File metadata

  • Download URL: wildboar-1.0.7.tar.gz
  • Upload date:
  • Size: 67.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for wildboar-1.0.7.tar.gz
Algorithm Hash digest
SHA256 783656ce3f55d5970a8af5ff0ccf389f68728ea7e231135f3a534c2252c91379
MD5 645d314ea1d15d346161fc75090c1d0d
BLAKE2b-256 5eeda0fba4f9fb3d3864f3a99495d17d7edb7d3d0f06ac2daa643ee0156f7b64

See more details on using hashes here.

File details

Details for the file wildboar-1.0.7-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: wildboar-1.0.7-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 305.6 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for wildboar-1.0.7-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a2cfebffaa89d5e6ed8a6e7e6a6926605cb3365e020d1421b738dbb8fc9749c2
MD5 df616e65eba406345fd8a241bf3cafa7
BLAKE2b-256 d39b3cedff9aae2c9a4b3f274754af3c37e56d27f6cf92ff0a05f2de11158cde

See more details on using hashes here.

File details

Details for the file wildboar-1.0.7-cp39-cp39-manylinux2010_x86_64.whl.

File metadata

  • Download URL: wildboar-1.0.7-cp39-cp39-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for wildboar-1.0.7-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 aca82cc2188ea024b18d72ad614f643300d268cd33265dbae0341267ce85c4a6
MD5 27bbff19f78c5fac79afec16fe169c03
BLAKE2b-256 529f06cc2062a94d1498d5635566956a845ec4fa03c1b494ea9831cd0eaa1a72

See more details on using hashes here.

File details

Details for the file wildboar-1.0.7-cp39-cp39-manylinux1_x86_64.whl.

File metadata

  • Download URL: wildboar-1.0.7-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for wildboar-1.0.7-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 69973950cb93747335810838bfdb405f449fe7850a18e9ca95e7433d59a655eb
MD5 b6a8cca8fbc933a1d8dc4650069372f3
BLAKE2b-256 4d3267eab834ef0cfaccab616a2dcfc6a74dee9f0ed340f3069263ef930e0349

See more details on using hashes here.

File details

Details for the file wildboar-1.0.7-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: wildboar-1.0.7-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 342.6 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for wildboar-1.0.7-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d66a1f09bf55704461c0b2b9fc8252212327ee7843317d6350eb4e41a22524f3
MD5 dfbc1a12afcfe3144bf1a7ce790e29d3
BLAKE2b-256 981f88dee250444e6b5f6bce0524ee199cc0c44169f372f4317b5b975567a2b0

See more details on using hashes here.

File details

Details for the file wildboar-1.0.7-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: wildboar-1.0.7-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 305.3 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for wildboar-1.0.7-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2e494bcc6f989fdc306a200a979f5165a974ae57c172fa3c41c8a815bf25ee60
MD5 eb0f37738136bc0b779b2245a10050e4
BLAKE2b-256 2be6492d48dcebe29c420696d22c3e4876a3efb87d5fd417223c9371540a6617

See more details on using hashes here.

File details

Details for the file wildboar-1.0.7-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: wildboar-1.0.7-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for wildboar-1.0.7-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 6581ce4250669ac0cf03dc816ce239f6037aa19bb16d5b19b9d108c3d84b2d43
MD5 ed1455d05ff929bee6e5d71969292716
BLAKE2b-256 e5bd250358f6e65445438010bc84b3d75c33365cbabc10d50cfa1cdcac576598

See more details on using hashes here.

File details

Details for the file wildboar-1.0.7-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: wildboar-1.0.7-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for wildboar-1.0.7-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ed1875040b33aad4d7ef3ddac21cd78fc831bcda68227948650ce5d08be187b6
MD5 29b5bc4d9b548e3d07a2200710a8a72a
BLAKE2b-256 9f10049f7c502660fb58738553616ed916958c29c313e303319a9b213f40b538

See more details on using hashes here.

File details

Details for the file wildboar-1.0.7-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: wildboar-1.0.7-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 334.8 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for wildboar-1.0.7-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a536c929417c3a8f32b299c7f4c4f1c6870161cdd82e9e3a4d099cc5cb5bb6b4
MD5 73f9ebd7150947b5bd3c469f4f89ac73
BLAKE2b-256 4b5686665c9965d8b99459baebfbba53bd2f6570c542b78a8d7e5d68bf84f7f9

See more details on using hashes here.

File details

Details for the file wildboar-1.0.7-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: wildboar-1.0.7-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 301.6 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for wildboar-1.0.7-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 6c6fb8ab0dee4bb1437f648a3ccb8b23c86ec5296a23f38077a096ffcc098d00
MD5 db621ab403eb20250ad29a9c31605791
BLAKE2b-256 f7d2aa427ad3ecaafae346901def0e35d2ac158b1cbc0469ceb13e8511239a93

See more details on using hashes here.

File details

Details for the file wildboar-1.0.7-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: wildboar-1.0.7-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for wildboar-1.0.7-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 cbdc7c8adfd9c24148392571ba33944788da9981a84d9fcb2eeef5a02357417f
MD5 06a7ef6d116eda4678454b4d25f0a4a4
BLAKE2b-256 002f3ac9673f1f164bd4c046f94642f48ac5cf983c8afc2b3e83886b71eae608

See more details on using hashes here.

File details

Details for the file wildboar-1.0.7-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: wildboar-1.0.7-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for wildboar-1.0.7-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 65592cce346a47115ff650e50044218d2b877b1abe23eee53fb1f967a300f162
MD5 585788c6b69c2851c8f1d6c3e19545b0
BLAKE2b-256 9cec3462b3c57f6d258bae02bfd989066863f8f569fffb0a69d238c10107a1d9

See more details on using hashes here.

File details

Details for the file wildboar-1.0.7-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: wildboar-1.0.7-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 331.0 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for wildboar-1.0.7-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 543676cde485e4d8fb8bf993f186ab9cd264aab404e11bea77e9d77c8c17067f
MD5 9ab7197f23e370547dde9be3c3fbe20d
BLAKE2b-256 b02477637f3278a6d4a17399584bdef58178f376d31030948f083f6d7f4bceff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page