You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-8Lines changed: 13 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,12 +5,17 @@
5
5
***LEONI Lorenzo**, postgraduate in Computer Engineering at University of Bergamo.
6
6
7
7
## 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;
14
14
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