wildboar
#
Wildboar - a library for temporal machine learning.
Wildboar includes numerous temporal machine learning algorithms and seamlessly integrates them with scikit-learn.
wildboar.annotate
#
Annotation of time series.
See the annotation section in the User Guide for more details and examples.
wildboar.base
#
Base classes for all estimators.
Base estimator for all Wildboar estimators. |
|
Mixin class for counterfactual explainer. |
|
Mixin class for all explainers in wildboar. |
Check if estimator is a counterfactual explainer. |
|
Check if estimator is an explainer. |
wildboar.datasets
#
Dataset loading utilities.
See the dataset section in the User Guide for more details and examples.
Examples
>>> from wildboar.datasets import load_dataset
>>> X, y = load_dataset("GunPoint")
>>> X.shape
(200, 60)
Base class for handling dataset bundles. |
|
A repository is a collection of bundles. |
|
Bundle of numpy binary files. |
|
A repository is a collection of bundles. |
Clear the cache by deleting cached datasets. |
|
Get all bundles in the repository. |
|
Get repository by name. |
|
Install repository. |
|
Get a list of all bundle names in the specified repository. |
|
List the collections of the repository. |
|
List the datasets in the repository. |
|
List the key of all installed repositories. |
|
Load a dataset from a repository. |
|
Load all datasets as a generator. |
|
Load the GunPoint dataset. |
|
Load the Synthetic_Control dataset. |
|
Load the TwoLeadECG dataset. |
|
Refresh the installed repositories. |
|
Change the global cache directory. |
wildboar.datasets.outlier
#
Utilities for generating synthetic outlier datasets.
See the User Guide for more details and example uses.
Densitiy based outlier generation. |
|
Difficulty based outlier generation. |
|
K-mean outlier generation. |
|
Label the majority class as inliers. |
|
Label (a fraction of) the minority class as the outlier. |
wildboar.datasets.preprocess
#
Utilities for preprocessing time series.
Scale each time series by its maximum absolute value. |
|
Scale x along the time dimension. |
|
Get a named preprocessor. |
|
Scale x along the time dimension. |
|
Truncate x to the shortest sequence. |
wildboar.distance
#
Fast distance computations.
The wildboar.distance
module includes functions for computing
paired and pairwise distances between time series and between time series and
subsequences.
See the User Guide for more details and examples.
KMeans clustering with support for DTW and weighted DTW. |
|
KMedoid algorithm. |
|
Classifier implementing k-nearest neighbors. |
|
Multidimensional scaling. |
Find the indicies of the samples with the lowest distance in Y. |
|
Compute the k:th closest subsequences. |
|
Compute the distance profile. |
|
Compute the matrix profile. |
|
Compute the distance between the i:th time series. |
|
Minimum subsequence distance between the i:th subsequence and time series. |
|
Find matching subsequnces. |
|
Compute the distance between subsequences and time series. |
|
Minimum subsequence distance between subsequences and time series. |
|
Find matching subsequnces. |
wildboar.distance.dtw
#
DTW alignment and distance computations.
The wildboar.distance.dtw
module implements several functions for
computing DTW alignments and distances.
Compute the derivative dynamic time warping distance. |
|
Compute the Dynamic time warping alignment matrix. |
|
Compute the DTW barycenter average (DBA). |
|
Compute the dynamic time warping distance. |
|
Compute the envelop for LB_keogh. |
|
LB_keogh lower bound. |
|
Optimal warping path between two series or from a given alignment matrix. |
|
Weighting described by Jeong et. al. (2011)[R4bf7d056babf-1]_. |
|
Compute the weighted derivative dynamic time warping distance. |
|
Weighted dynamic time warping alignment. |
|
Compute the weighted dynamic time warping distance. |
wildboar.ensemble
#
Ensemble methods for classification, regression and outlier detection.
A bagging classifier. |
|
A bagging regressor. |
|
Base estimator for Wildboar ensemble estimators. |
|
Ensemble of |
|
An ensemble of extremely random shapelet trees. |
|
An ensemble of extremely random shapelet tree regressors. |
|
An ensemble of interval tree classifiers. |
|
An ensemble of interval tree regressors. |
|
An isolation shapelet forest. |
|
An ensemble of interval tree classifiers. |
|
A forest of proximity trees. |
|
An ensemble of rocket tree classifiers. |
|
An ensemble of rocket tree regressors. |
|
An ensemble of random shapelet tree classifiers. |
|
An ensemble of random shapelet trees. |
|
An ensemble of random shapelet tree regressors. |
wildboar.explain
#
Explanation methods for classifiers and regressors.
Compute the importance of equi-probable amplitude intervals. |
|
Mixin class for all explainers in wildboar. |
|
Interval importance for time series. |
|
Compute the importance of shapelets. |
Plot the importances as a boxplot. |
wildboar.explain.counterfactual
#
Counterfactual explanations.
The wildboar.explain.counterfactual
module includes numerous
methods for generating counterfactual explanations.
Fit a counterfactual explainer to a k-nearest neighbors classifier. |
|
Model agnostic approach for constructing counterfactual explanations. |
|
Counterfactual explanations for shapelet forest classifiers. |
Compute a single counterfactual example for each sample. |
|
Compute the proximity of the counterfactuals. |
wildboar.linear_model
#
Linear methods for both classification and regression.
A dictionary based method using dilated competing shapelets. |
|
A classifier that uses random dilated shapelets. |
|
A Dictionary based method using convolutional kernels. |
|
A classifier that uses random shapelets. |
|
A regressor that uses random shapelets. |
|
Implements the ROCKET classifier. |
|
Implements the ROCKET regressor. |
wildboar.metrics
#
Evaluation metrics.
Compute compactness score. |
|
Compute plausibility score. |
|
Compute proximity score. |
|
Compute the redudancy score. |
|
Compute relative proximity score. |
|
Compute the Silhouette Coefficient of each samples. |
|
Compute the mean Silhouette Coefficient of all samples. |
|
Compute validity score. |
wildboar.model_selection
#
Methods for model selection.
Repeated random outlier cross-validator. |
Outlier training and testing split from classification dataset. |
wildboar.transform
#
Transform raw time series to tabular representations.
Competing Dialated Shapelet Transform. |
|
Mixin class for all transformers in scikit-learn. |
|
Mixin class for all transformers in scikit-learn. |
|
Dilated shapelet transform. |
|
Transform a time series as a number of features. |
|
A Dictionary based method using convolutional kernels. |
|
Embed a time series as a collection of features per interval. |
|
Matrix profile transform. |
|
Peicewise aggregate approximation. |
|
A transform using pivot time series and sampled distance metrics. |
|
Transform time series based on class conditional pivots. |
|
Random shapelet tranform. |
|
Transform a time series using random convolution features. |
|
Symbolic aggregate approximation. |
Apply 1D convolution over a time series. |
|
Peicewise aggregate approximation. |
|
Symbolic aggregate approximation. |
wildboar.tree
#
Tree-based estimators for classification and regression.
An extra shapelet tree classifier. |
|
An extra shapelet tree regressor. |
|
An interval based tree classifier. |
|
An interval based tree regressor. |
|
A tree classifier that uses pivot time series. |
|
A classifier that uses a k-branching tree based on pivot-time series. |
|
A tree classifier that uses random convolutions as features. |
|
A tree regressor that uses random convolutions as features. |
|
A shapelet tree classifier. |
|
A shapelet tree regressor. |
wildboar.utils
#
Utility functions.
Input validation on time-series. |
|
Check both X and y. |