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 BSD 3-Clause license.
It is currently maintained by Isak Samsten
Features
Data | Classification | Regression | Explainability | Metric | Unsupervised | Outlier |
---|---|---|---|---|---|---|
Repositories | ShapeletForestClassifier |
ShapeletForestRegressor |
ShapeletForestCounterfactual |
UCR-suite | ShapeletForestTransform |
IsolationShapeletForest |
Classification (wildboar/ucr ) |
ExtraShapeletTreesClassifier |
ExtraShapeletTreesRegressor |
KNearestCounterfactual |
MASS | RandomShapeletEmbedding |
|
Regression (wildboar/tsereg ) |
RocketTreeClassifier |
RocketRegressor |
PrototypeCounterfactual |
DTW | RocketTransform |
|
Outlier detection (wildboar/outlier:easy ) |
RocketClassifier |
RandomShapeletRegressor |
IntervalImportance |
DDTW | IntervalTransform |
|
RandomShapeletClassifier |
RocketTreeRegressor |
WDTW | FeatureTransform |
|||
RocketForestClassifier |
RocketForestRegressor |
MSM | MatrixProfile | |||
IntervalTreeClassifier |
IntervalTreeRegressor |
TWE | Segmentation | |||
IntervalForestClassifier |
IntervalForestRegressor |
LCSS | Motif discovery | |||
ProximityTreeClassifier |
ERP | SAX |
||||
ProximityForestClassifier |
EDR | PAA |
||||
MatrixProfileTransform |
See the documentation for examples.
Installation
Binaries
wildboar
is available through pip
and can be installed with:
pip install wildboar
Universal binaries are compiled for GNU/Linux and Python 3.8, 3.9, 3.10
Compilation
If you already have a working installation of numpy, scikit-learn, scipy and cython, compiling and installing wildboar is as simple as:
pip install .
To install the requirements, use:
pip install -r requirements.txt
For complete instructions see the documentation
Usage
from wildboar.ensemble import ShapeletForestClassifier
from wildboar.datasets import load_dataset
x_train, x_test, y_train, y_test = load_dataset("GunPoint", merge_train_test=False)
c = ShapeletForestClassifier()
c.fit(x_train, y_train)
c.score(x_test, y_test)
The User guide includes more detailed usage instructions.
Changelog
The changelog records a history of notable changes to wildboar
.
Development
Contributions are welcome! The developer's guide has detailed information about contributing code and more!
In short, pull requests should:
- be well motivated
- be fomatted using Black
- add relevant tests
- add relevant documentation
Source code
You can check the latest sources with the command:
git clone https://github.com/isaksamsten/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. Zenodo. doi:10.5281/zenodo.4264063
-
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.1.4-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fe3b657b4a7c2dd2619d1e5dbbd0f31b4bd2be9d86ead359bbade57452ba67a |
|
MD5 | 08e0fb9f1e337de01e27d25842549895 |
|
BLAKE2b-256 | 2ef6179f01817d8fc1d20bfe4c8aac3cdeedbb1a36be678f1a9f78f8de584657 |
Hashes for wildboar-1.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6b950da125bd8b2562b12c455e8b49b06ca8cd21695e84d9b5680eb63a113a5 |
|
MD5 | 2262c99c19dd1721c599d5e155c3a046 |
|
BLAKE2b-256 | 78d160fb1769d159c09f04bad6c37634e379b43955b83a45d5db35fc49978b7c |
Hashes for wildboar-1.1.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ea7a424e562bb5d21a65453a27e1467dea74fd74dac9dfc220e6194541927ac |
|
MD5 | 5b8d480ce0f6ea1e2609aec404177e8f |
|
BLAKE2b-256 | 8088d0a34070eb72200d890763089a91c770f6fdf1d8613593bbf316500b0456 |
Hashes for wildboar-1.1.4-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0f254f2ca6c1c248844502d29e056cc1d4856f19597567bc4eedd08eb992fdd |
|
MD5 | 3d475c6911b798b0a1e459ab8adb5cc7 |
|
BLAKE2b-256 | 9ceb95ce2bf2621a03106bd94a88e252f3aaee82fc0f9a6e3b3c307cc14524cb |
Hashes for wildboar-1.1.4-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 898fc94b9639f8137bdc40a7f8730a2cb631d4efc61e7e16fd9b351949248e76 |
|
MD5 | af4ecdc1074d5c66d7970a68321e4acc |
|
BLAKE2b-256 | 61344e6448fab77c91cdb915abdfed87a4a982604f0952a114f691365505d3fe |
Hashes for wildboar-1.1.4-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7b2f4e4486507a87e52eac2751f116db1a3af60fd7e413f431e5ea785725e58 |
|
MD5 | 4c68d970585d9fb8c3c74b4b747e7797 |
|
BLAKE2b-256 | 714852213fc0c24893053b197917369d7a1671fbfefe1972b05c8b511eff5369 |
Hashes for wildboar-1.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 887244cf23cbe75c0d07cd12855585cc0db40aab04411750ecec2db144668338 |
|
MD5 | 30e3ecdaf9b8f6d7b43fc01b6e48f965 |
|
BLAKE2b-256 | e8ac1f057930cc92e719f9a6843a482df6c0485a971c376c048c886f0ca08b9c |
Hashes for wildboar-1.1.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6ae6e5a02be014e4b30754db9c0b31d66be5a21e22d034999de7c4c5209d447 |
|
MD5 | 8c644a4fb6ade738464bc1ec26244c6e |
|
BLAKE2b-256 | f661743c198c688d052e021b495de8c3a4cd90526e0a518f8c8c223fa062a420 |
Hashes for wildboar-1.1.4-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03c07ffd5bfb632089da335142b29631d4c8cf5d781da84ec68590e9c8d33f47 |
|
MD5 | b229719f3658bf685e6bde141ba9a039 |
|
BLAKE2b-256 | 4d80d237b5d04d4852f439e60d44856d8339411b462edb43ae944d7e7f12f89e |
Hashes for wildboar-1.1.4-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bda2bdd200e9a33d5fe559e7b8bcca68771a7bfe0b3afcd1100ef63d3d425bd8 |
|
MD5 | 0944807c050796b30b5aa512a3559e68 |
|
BLAKE2b-256 | 4d92a7a9334e33427e6201ed8480a4a2293e91e20d4e2cfb659acf027065ce4c |
Hashes for wildboar-1.1.4-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 718361d89f02cde6a9a51d13356f28d59678f23c386d0bfd41edfb5d079b32a3 |
|
MD5 | 7038ad0bbe1b6e5c989420c1f516182e |
|
BLAKE2b-256 | 68e506e88d1770868ed812e596d46a8dd0baa7500b6076e3b7b9a58973a5f202 |
Hashes for wildboar-1.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8fe5216a9cdfd411880edba090f5f5aa552ccaf3634430c3942f79d7233443a |
|
MD5 | 7d2dba2fd952af08edb5ec2bf6e05cb2 |
|
BLAKE2b-256 | e0ddc9c71ee1052629bb13db93a6d67af40db0719b9b286ea93be00826aa7cf0 |
Hashes for wildboar-1.1.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a5177341b27dc9be80efdf72a24db28cebc7ca6ceabc545686a0f6d3b72b6ca |
|
MD5 | f29b79cd086cb24d5e572abbd194078d |
|
BLAKE2b-256 | f74b6a2656e79a03717e44110e399b7e55d8869fef050ec77bfae75280eccc1f |
Hashes for wildboar-1.1.4-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2a27e5bace4627001d5350febeaf353a8930e11609552e4e9efd9487407f29f |
|
MD5 | d673a5f39fe7046bc6817ebf3866b9cc |
|
BLAKE2b-256 | 2f2a37a1149f860689885fad59825baba3efa0a281504efb6c85731f7d59ab70 |
Hashes for wildboar-1.1.4-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eee838ad81cfb23f09e982fee8a46946dc69dd3f0773c26605325c92526a8a10 |
|
MD5 | 507edf74537f61795c85f1e5cb46d782 |
|
BLAKE2b-256 | e3ed3999889bbce5f293a6a5c44cc45d8ca6f16e49cf27dd4e630ffc7662e178 |
Hashes for wildboar-1.1.4-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2e740959042fe644aac36a2f6d5eaaa1a1f2abca14b23f32db5690f77fc496d |
|
MD5 | f30f289bd6a0187f4c3aafefdb00e805 |
|
BLAKE2b-256 | 1600e31f7489d9a2d5b14e94b025ca8bfb2fcedd5cf5bf9bd01bce3cd75054f8 |
Hashes for wildboar-1.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b416ed66d5e379ecdddbfda7a55994f60601c0715432b9cccdede62ab38bf9e |
|
MD5 | b9022a524ca1fdb172ad43212c9fd4fe |
|
BLAKE2b-256 | 620cf501a70f6186a1fcd944367944791d1aaf94b98eaef8c2c77a41600045e3 |
Hashes for wildboar-1.1.4-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87bf836aec2af8200cbabc1e7b4c7b8218206f1f0d63665b9537104eea8af4b0 |
|
MD5 | a2254f86d7df4754468f0b58649d5e73 |
|
BLAKE2b-256 | 1f3b315078dd4b81ddbb57a3b662e2b86c86fdeb7d05d2bf46fc8aa5bc4f639d |
Hashes for wildboar-1.1.4-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c194b0f9f25dcb8dd7fcf70e4ff1169c75752b0ce82561b4c6c2b39aa2e9071b |
|
MD5 | 49256e315f8c4edbee54466d8f74b331 |
|
BLAKE2b-256 | ee3632409c9622cae746e58d5a45718d32420af97eec0e42dec3b40ea5a8facc |
Hashes for wildboar-1.1.4-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 216f2675d5da828174b539d9a9816053dca659e8d37b1e6c289f5799ba1067f2 |
|
MD5 | 7701669560cb1ec776c2ef8f0e3f18ba |
|
BLAKE2b-256 | e1e9c10b0da5f645dab897a084aba7c114969e7ce341fb63336678d673193e74 |
Hashes for wildboar-1.1.4-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 706e420d46eaf0a7753d12e734c0a48d863d5581a1766a0dbf5ad650bdb9496d |
|
MD5 | 6d43fd7087e2b7ec43c79332da189c54 |
|
BLAKE2b-256 | a3f655d9baeeff82e864a7d5b9810a5be8d4748667cb79eee18c997ec2438b93 |
Hashes for wildboar-1.1.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c436ecced89f75fd5f2a643ffe0a6f716b178d93482b892a1e6fd9cdc9434655 |
|
MD5 | 8dce79dfa7bf9e82de004c5ed04fdfd6 |
|
BLAKE2b-256 | 92fc0f5311639c7539d3d760fd3cbdb56c3f57da173ee2bcfa2a38e3ca863437 |
Hashes for wildboar-1.1.4-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d7df2ab3a12df33b8f379791180e82f77d46360c812badba404b011446e1ddd |
|
MD5 | 24e26635a4d92ef2036dd545edacac69 |
|
BLAKE2b-256 | 45949deb94e57258259893f99216c436cf796931a83a7e8c23461014bccb509f |
Hashes for wildboar-1.1.4-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02f392aebbea5b8db0bb5fda47376f9a7ba61d9c8528d1161e0fd0d950251149 |
|
MD5 | d7ef123df810b75e0cab7fe09e50465d |
|
BLAKE2b-256 | 2ca226b97fe4e9276b03f05d8703c48bbc5529a98b75ea5d7039c93cacf33c30 |
Hashes for wildboar-1.1.4-cp38-cp38-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3187313a4243ba3544cf7928e202e392565ff32f811edf9b6def4454f6550670 |
|
MD5 | 2e9ef7dcbce8a7aa803a2b3e6083b80a |
|
BLAKE2b-256 | ea6411b816928d340ee17840390db1298b899191941a519c7c7bc07a63687300 |