Multi Comparison Matrix: A long term approach to benchmark evaluations
Project description
Multi-Comparison Matrix (MCM)
This repository contains the software for our paper titled "An Approach to Multiple Comparison Benchmark Evaluations that is Stable Under Manipulation of the Comparate Set". This work has been done by Ali Ismail-Fawaz, Angus Dempster, Chang Wei Tan, Matthieu Herrmann, Lynn Miller, Daniel Schmidt, Stefano Berretti, Jonathan Weber, Maxime Devanne, Germain Forestier and Geoff I. Webb.
Can now be used through PyPl
Simply install using pip install multi-comp-matrix
and use it as explained in the below example section
Papers Using the MCM:
- Middlehurst et al. 2024 "Bake off redux: a review and experimental evaluation of recent time series classification algorithms" Data Mining and Knowledge Discovery
- Ismail-Fawaz et al. 2024 "Finding foundation models for time series classification with a pretext task" The Pacific-Asia Conference on Knowledge Discovery and Data Mining - International Workshop on Temporal Analytics
- Foumani et al. 2023 "Series2Vec: Similarity-based Self-supervised Representation Learning for Time Series Classification" Data Mining and Knowledge Discovery
- Holder et al. 2023 "[A review and evaluation of elastic distance functions for time series clustering](A review and evaluation of elastic distance functions for time series clustering)" Knowledge and Information Systems
- Ismail-Fawaz et al. 2023 "LITE: Light Inception with boosTing tEchniques for Time Series Classification" IEEE 10th International Conference on Data Science and Advanced Analytics
- Koh et al. 2023 "PSICHIC: physicochemical graph neural network for learning protein-ligand interaction fingerprints from sequence data" bioRxiv
- Ayllón-Gavilán et al. 2023 "Convolutional and Deep Learning based techniques for Time Series Ordinal Classification"
- Ismail-Fawaz et al. 2023 "ShapeDBA: Generating Effective Time Series Prototypes Using ShapeDTW Barycenter Averaging" The European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases Workshop on Advanced Analytics and Learning on Temporal Data
- Dempster et al. 2023 "QUANT: A Minimalist Interval Method for Time Series Classification" Data Mining and Knowledge Discovery
- Holder et al. 2023 "Clustering Time Series with k-Medoids Based Algorithms" The European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases Workshop on Advanced Analytics and Learning on Temporal Data
- Guijo-Rubio et al. 2023 "Unsupervised feature based algorithms for time series extrinsic regression" Data Mining and Knowledge Discovery
- Fischer et al. 2024 "Towards more sustainable and trustworthy reporting in machine learning." Data Mining and Knowledge Discovery
- Middlehurst et al. 2024 "aeon: a Python toolkit for learning from time series."
- da Silva et al. 2024 "Artist Similarity based on Heterogeneous Graph Neural Networks." IEEE/ACM Transactions on Audio, Speech, and Language Processing
- Renault, Aurélien, et al. "Early Classification of Time Series: Taxonomy and Benchmark." arXiv preprint arXiv:2406.18332 (2024).
- Spinnato, Francesco, et al. "Fast, Interpretable and Deterministic Time Series Classification with a Bag-Of-Receptive-Fields." Data Mining and Knowledge Discovery (2024).
- Lo, Mouhamadou Mansour, et al. "Time series classification with random convolution kernels based transforms: pooling operators and input representations matter." arXiv preprint arXiv:2409.01115 (2024).
Summary
This repo is a long term used benchmark method that generates a Multi-Comparison Matrix where the user ca choose whether to include a full pairwise multi-comparate comparison or to choose which ones to be included or excluded in the rows and columns of the matrix.
Input Format
The input format is in a .csv
file containing the statistics of each classifiers as the format of this example.
Usage of Code - Plot the MCM
In order for the user to plot the MCM, first thing is to load the .csv
file into a pandas
dataframe and feed it to the compare
function. The user should specify the pdf_savename
, png_savename
, csv_savename
or tex_savename
parameter in order to save the output figure in pdf
, png
, csv
or tex
formats respecively.
Examples
Generating the MCM on the following example produces the following. To generate the following figure, the user follows this simple code:
import pandas as pd
from multi_comp_matrix import MCM
df_results = pd.read_csv('path/to/csv')
output_dir = '/output/directory/desired'
MCM.compare(
output_dir=output_dir,
df_results=df_results,
pdf_savename="heatmap",
png_savename="heatmap",
)
Generating the MCM on the following example by excluding clf1
and clf3
from the columns.
import pandas as pd
from multi_comp_matrix import MCM
df_results = pd.read_csv('path/to/csv')
output_dir = '/output/directory/desired'
MCM.compare(
output_dir=output_dir,
df_results=df_results,
excluded_col_comparates=['clf1','clf3'],
png_savename='heatline_vertical',
tex_savename='heatline_vertical',
include_ProbaWinTieLoss=True
)
and by excluding them in the rows.
import pandas as pd
from multi_comp_matrix import MCM
df_results = pd.read_csv('path/to/csv')
output_dir = '/output/directory/desired'
MCM.compare(
output_dir=output_dir,
df_results=df_results,
excluded_row_comparates=['clf1','clf3'],
png_savename='heatline_horizontal',
csv_savename='heatline_horizontal',
)
Requirements
The following python packages are required for the usage of the module:
numpy==1.24.4
pandas==2.0.3
matplotlib==3.7.4
scipy==1.10.0
baycomp==1.0
tqdm==4.66.1
Citation
If you use this work please make sure you cite this paper:
@article{ismail2023approach,
title={An Approach To Multiple Comparison Benchmark Evaluations That Is Stable Under Manipulation Of The Comparate Set},
author={Ismail-Fawaz, Ali and Dempster, Angus and Tan, Chang Wei and Herrmann, Matthieu and Miller, Lynn and Schmidt, Daniel F and Berretti, Stefano and Weber, Jonathan and Devanne, Maxime and Forestier, Germain and Webb, Geoff I},
journal={arXiv preprint arXiv:2305.11921},
year={2023}
}
Acknowledgments
The work reported in this paper has been supported by the Australian Research Council under grant DP210100072; the ANR TIMES project (grant ANR-17- CE23-0015); and ANR DELEGATION project (grant ANR-21-CE23-0014) of the French Agence Nationale de la Recherche. The authors would like to thank Professor Eamonn Keogh and all the people who have contributed to the UCR time series classification archive.
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 Distribution
File details
Details for the file multi_comp_matrix-0.0.2.tar.gz
.
File metadata
- Download URL: multi_comp_matrix-0.0.2.tar.gz
- Upload date:
- Size: 244.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0de5b6d7b5c3a399059d20fd01bb07254524838aee86f5248f3c6aaa38aecc4 |
|
MD5 | 58fe0239b6b17a086494bb2f35d54ef2 |
|
BLAKE2b-256 | 90b8fa04fabe221e552ca82b66317e455558e825376ef0a517f553175ac07930 |
Provenance
The following attestation bundles were made for multi_comp_matrix-0.0.2.tar.gz
:
Publisher:
publish.yml
on MSD-IRIMAS/Multi_Comparison_Matrix
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
multi_comp_matrix-0.0.2.tar.gz
- Subject digest:
e0de5b6d7b5c3a399059d20fd01bb07254524838aee86f5248f3c6aaa38aecc4
- Sigstore transparency entry: 146481872
- Sigstore integration time:
- Predicate type:
File details
Details for the file multi_comp_matrix-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: multi_comp_matrix-0.0.2-py3-none-any.whl
- Upload date:
- Size: 30.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5afc046ac5d34833e25f9a475006d7104f497cf34aff8ce755e7d3ecba9b406 |
|
MD5 | a23c9ca5676cabe6382c980a5a3d4859 |
|
BLAKE2b-256 | 85f4e8a1ae70c0b0b05221ba53eb929d9e7c77e84a8c33c0297109ba02421b58 |
Provenance
The following attestation bundles were made for multi_comp_matrix-0.0.2-py3-none-any.whl
:
Publisher:
publish.yml
on MSD-IRIMAS/Multi_Comparison_Matrix
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
multi_comp_matrix-0.0.2-py3-none-any.whl
- Subject digest:
d5afc046ac5d34833e25f9a475006d7104f497cf34aff8ce755e7d3ecba9b406
- Sigstore transparency entry: 146481873
- Sigstore integration time:
- Predicate type: