参考自 Multi-label Linear Discriminant Analysis
Linear discriminant analysis (LDA) is a well-known method for dimensionality reduction.
Given a data set with samples and classes, where and ( 维的 0-1 vector). if belongs to the ^th class, and 0 otherwise.
Let input data be partitioned into groups as , where denotes the group of the ^th class with data points. Classical LDA deals with single-label problems, where data partitions are mutually exclusive, i.e., if , and .
We write and
where is the class-wise label indication vector for the class.
简单理一下:
- # of features =
- # of samples =
- is a vector
- is a matrix
- is a vector
- is a vector
- is a matrix
Classical LDA seeks a linear transformation that maps in the high -dimensional space to in a lower -dimensional () space by . In classical LDA, the between-class, within-class, and total-class scatter matrices are defined as follows:
where is the class mean (class centroid) of the ^th class, is the global mean (global centroid), and .
The optimal is chosen such that the between-class distance is maximize whilst the within-class distance is minimized in the low-dimensional projected space, which leads to the standard LDA optimization objective as follows:
In linear algebra, the trace (迹) of an square matrix is defined to be the sum of the elements on the main diagonal (the diagonal from the upper left to the lower right) of , i.e.,
Comments