SLDR: supervised linear dimensionality reduction toolbox

A MATLAB toolbox for supervised linear dimension reduction (SLDR) including LDA, HLDA, PLSDA, MMDA, HMMDA and SDA
134 Downloads
Updated 15 Jun 2023

SLDR

A MATLAB toolbox for supervised linear dimension reduction (SLDR) including LDA, HLDA, MMDA, WHMMDA, PLS-DA, and SDA

Codes for the following papers were implemented:

  1. Heteroscedastic Max–Min distance analysis for dimensionality reduction (WHMMDA)
  2. Heteroscedastic max-min distance analysis (WHMMDA)
  3. Max-min distance analysis by using sequential SDP relaxation for dimension reduction (MMDA)
  4. Linear dimensionality reduction via a heteroscedastic extension of LDA: the Chernoff criterion (HLDA)
  5. Multiclass partial least squares discriminant analysis: Taking the right way—A critical tutorial (PLS-DA)
  6. Stochastic discriminant analysis for linear supervised dimension reduction (SDA)

Note:

To avoid matrix singularity in computations, we employ Marchenko–Pastur for denoising covariance matrices.

1. Introduction.

This package includes the prototype MATLAB codes for supervised linear dimension reduction (SLDR).

The implemented methods include:

  1. Linear discriminant analysis (LDA)
  2. Heteroscedastic extension of LDA (HLDA)
  3. Max-min distance analysis (MMDA)
  4. Heteroscedastic extension of MMDA (WHMMDA)
  5. Partial least squares discriminant analysis (PLS‐DA)
  6. Stochastic discriminant analysis (SDA)

2. Usage & Dependency.

Dependency:

 If you want to use MMDA or WHMMDA, you should download the following zip file & extract it in the "cvx-toolbox" or current directory
 CVX MATLAB toolbox for Windows can be downloaded from [website](http://web.cvxr.com/cvx/cvx-w64.zip)

Usage:

Run and check "demo_run_methods.m" and you'll see the below results for all methods

results

Cite As

Sajjad Karimi (2025). SLDR: supervised linear dimensionality reduction toolbox (https://github.com/sajjadkarimi91/SLDR-supervised-linear-dimensionality-reduction-toolbox/releases/tag/1.2), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2022b
Compatible with R2018a and later releases
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.2

See release notes for this release on GitHub: https://github.com/sajjadkarimi91/SLDR-supervised-linear-dimensionality-reduction-toolbox/releases/tag/1.2

1.1

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.