资源简介
经典监督式学习降维方法线性判别分析LDA算法的MATLAB代码,具有降维性能好的特点,同时可以用于分类,是一种具有代表性的降维算法
代码片段和文件信息
function [eigvector eigvalue] = LDA(gndoptionsdata)
% LDA: Linear Discriminant Analysis
%
% [eigvector eigvalue] = LDA(gnd options data)
%
% Input:
% data - Data matrix. Each row vector of fea is a data point.
% gnd - Colunm vector of the label information for each
% data point.
% options - Struct value in Matlab. The fields in options
% that can be set:
%
% Regu - 1: regularized solution
% a* = argmax (a‘X‘WXa)/(a‘X‘Xa+ReguAlpha*I)
% 0: solve the sinularity problem by SVD
% Default: 0
%
% ReguAlpha - The regularization parameter. Valid
% when Regu==1. Default value is 0.1.
%
% ReguType - ‘Ridge‘: Tikhonov regularization
% ‘Custom‘: User provided
% regularization matrix
% Default: ‘Ridge‘
% regularizerR - (nFea x nFea) regularization
% matrix which should be provided
% if ReguType is ‘Custom‘. nFea is
% the feature number of data
% matrix
% Fisherface - 1: Fisherface approach
% PCARatio = nSmp - nClass
% Default: 0
%
% PCARatio - The percentage of principal
% component kept in the PCA
% step. The percentage is
% calculated based on the
% eigenvalue. Default is 1
% (100% all the non-zero
% eigenvalues will be kept.
% If PCARatio > 1 the PCA step
% will keep exactly PCARatio principle
% components (does not exceed the
% exact number of non-zero components).
%
%
% Output:
% eigvector - Each column is an embedding function for a new
% data point (row vector) x y = x*eigvector
% will be the embedding result of x.
% eigvalue - The sorted eigvalue of LDA eigen-problem.
% elapse - Time spent on different steps
%
% Examples:
%
- 上一篇:k-means聚类分析
- 下一篇:灰色关联分析matlab代码
相关资源
- 高光谱图像pca分析特征提取
- CCA 特征融合 降维
- 斯坦福机器学习编程作业machine-learn
- MATLAB与机器学习
- MACHINE_LEARNING_with_NEURAL_NETWORKS_using_MA
- 降维技术matlab工具箱
- 流形学习LLE源代码matlab编写
- 交替方向乘子法ADMM算法的matlab代码
- 机器学习 : 实用案例解析 mobi格式
- 带操作界面GUI的字母识别-MATLAB程序
- matlab流形学习算法工具包&matlab机器学
- 机器学习工具包spider工具包
- 降维工具箱
- ISOMAP降维
- MATLAB与机器学习 李三平 陈建平译 译
- 机器学习Lasso回归重要论文和Matlab代码
- matlab编写的 32个降维程序
- matlab表情识别
- 采用深度稀疏自动编码器实现高维矩
- RVM-MATLAB-V1.3.zip
- 机器学习高斯混合模型资料总结含m
- PCA LDA LLE各种降维方法Matlab工具箱
- Coursera吴恩达机器学习课程作业资料
- KNN算法训练MNIST和CIFAR数据集
- t-sne算法matlab原函数
- Matlab Deep learning 2017年新书
- 机器学习与MATLAB代码
- matlab与机器学习代码
- 机器学习课程设计《基于朴素贝叶斯
- usps手写数字数据集
评论
共有 条评论