Skip to content

Commit e971e99

Browse files
committed
2 parents 5df3de3 + d03037f commit e971e99

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,17 @@
55
* **LEONI Lorenzo**, postgraduate in Computer Engineering at University of Bergamo.
66

77
## Description
8-
Implementation of the PLS algorithm through a MATLAB class which allows:
9-
* to estimate a classification model using the NIPALS algorithm;
10-
* to validate and cross-validate it by providing some performance metrics;
11-
* to predict new instances starting from the trained model;
12-
* to compute the best reduction order;
13-
* to perform a comparison with the PCA technique.
8+
Implementation of the **discriminant PLS algorithm** through a MATLAB class. It provides the following features:
9+
* *estimation* of a PLS model by using the NIPALS algorithm, both PLS1 and PLS2 versions;
10+
* *validation* of the estimated model by providing not only the test MCE for each class, but also the test confusion matrix;
11+
* *cross-validation* to find the best reduction order;
12+
* *graphing* of the matrix T for orders 1, 2, and 3;
13+
* *classification* of new data;
1414

15-
[Data_analysis.mlx](Scripts/Data_analysis.mlx) contains an example of how [PLS.m](Scripts/PLS.m) can be used to classify
16-
steel plates faults by using this [dataset](https://www.kaggle.com/datasets/uciml/faulty-steel-plates) available on Kaggle.
15+
Moreover, [PLS.m](Scripts/PLS.m) can also estimate a PCA model, therefore it is possible to compare it with PLS.
16+
17+
## Installation
18+
It is enough to put [PLS.m](Scripts/PLS.m) in your working directory and methods of this MATLAB class will be ready to be called in your script.
19+
20+
## Coding example
21+
[Data_analysis.mlx](Scripts/Data_analysis.mlx) contains an example of how this MATLAB class can be used to solve a classification problem by using the PLS algorithm. In particular, the covered problem deals with **steel plates fault detection**. The source dataset is available on [Kaggle](https://www.kaggle.com/datasets/uciml/faulty-steel-plates).

0 commit comments

Comments
 (0)