Code Monkey home page Code Monkey logo

multi_comparison_matrix's Introduction

Multi-Comparison Matrix (MCM)

Papers Using the MCM:

  1. Middlehurst et al. 2024 "Bake off redux: a review and experimental evaluation of recent time series classification algorithms" Data Mining and Knowledge Discovery
  2. 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
  3. Foumani et al. 2023 "Series2Vec: Similarity-based Self-supervised Representation Learning for Time Series Classification" Data Mining and Knowledge Discovery
  4. 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
  5. 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
  6. Koh et al. 2023 "PSICHIC: physicochemical graph neural network for learning protein-ligand interaction fingerprints from sequence data" bioRxiv
  7. Ayllón-Gavilán et al. 2023 "Convolutional and Deep Learning based techniques for Time Series Ordinal Classification"
  8. 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
  9. Dempster et al. 2023 "QUANT: A Minimalist Interval Method for Time Series Classification" Data Mining and Knowledge Discovery
  10. 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
  11. Guijo-Rubio et al. 2023 "Unsupervised feature based algorithms for time series extrinsic regression" Data Mining and Knowledge Discovery
  12. Fischer et al. 2024 "Towards more sustainable and trustworthy reporting in machine learning." Data Mining and Knowledge Discovery
  13. Middlehurst et al. 2024 "aeon: a Python toolkit for learning from time series." 14.da Silva et al. 2024 "Artist Similarity based on Heterogeneous Graph Neural Networks." IEEE/ACM Transactions on Audio, Speech, and Language Processing

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 MCM 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",
    )

heatmap-example

Generating the MCM on the following example by excluding clf1 and clf3 from the columns.

import pandas as pd
from MCM 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
    )

heatline-vertical-example

and by excluding them in the rows.

import pandas as pd
from MCM 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',
    )

heatline-horizontal-example

Requirements

The following python packages are required for the usage of the module:

  1. numpy==1.24.4
  2. pandas==2.0.3
  3. matplotlib==3.7.4
  4. scipy==1.10.0
  5. baycomp==1.0
  6. 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.

multi_comparison_matrix's People

Contributors

hadifawaz1999 avatar maxwell1503 avatar angus924 avatar

Stargazers

 avatar Moisés R. Santos avatar  avatar Michael Franklin MBOUOPDA avatar Shaowu Chen avatar  avatar Guilherme Arcencio avatar Valeriy Shevchenko avatar Angelo Mendes avatar Yu-Chi Chen avatar Yunrui Zhang avatar Zhen-Qi Liu avatar Ben Fulcher avatar Huan Yee Koh (Huan) avatar Sylvain Combettes avatar Hassan ISMAIL FAWAZ avatar  avatar David Guijo-Rubio avatar Tony Bagnall avatar

Watchers

Chang Wei Tan avatar Germain Forestier avatar Jonathan Weber avatar  avatar  avatar

Forkers

changweitan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.