资源简介
局部保持映射(LPP)是由何晓飞提出的一种用于降维的流型学习算法,它是一种线性的算法。
代码片段和文件信息
function [eigvector eigvalue Y] = LPP(X W options)
% LPP: Locality Preserving Projections
%
% [eigvector eigvalue] = LPP(X W options)
%
% Input:
% X - Data matrix. Each row vector of fea is a data point.
% W - Affinity matrix. You can either call “constructW“
% to construct the W or construct it by yourself.
% options - Struct value in Matlab. The fields in options
% that can be set:
% ReducedDim - The dimensionality of the
% reduced subspace. If 0
% all the dimensions will be
% kept. Default is 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.
% 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 eigvalue of LPP eigen-problem. sorted from
% smallest to largest.
%
%
% [eigvector eigvalue Y] = LPP(X W options)
%
% Y: The embedding results Each row vector is a data point.
% Y = X*eigvector
%
%
% Examples:
%
% fea = rand(5070);
% options = [];
% options.Metric = ‘Euclidean‘;
% options.NeighborMode = ‘KNN‘;
% options.k = 5;
% options.WeightMode = ‘HeatKernel‘;
% options.t = 1;
% W = constructW(feaoptions);
% options.PCARatio = 0.99
% [eigvector eigvalue Y] = LPP(fea W options);
%
%
% fea = rand(5070);
% gnd = [ones(101);ones(151)*2;ones(101)*3;ones(151)*4];
% options = [];
% options.Metric = ‘Euclidean‘;
% options.NeighborMode = ‘Supervised‘;
% options.gnd = gnd;
% options.bLDA = 1;
% W = constructW(feaoptions);
% options.PCARatio = 1;
% [eigvector eigvalue Y] = LPP(fea W options);
%
%
% Note: After applying some simple algebra the smallest eigenvalue problem:
% X^T*L*X = \lemda X^T*D*X
% is equivalent to the largest eigenvalue problem:
% X^T*W*X = \beta X^T*D*X
% where L=D-W; \lemda= 1 - \beta.
% Thus the smallest eigenvalue problem can be transformed to a largest
% eigenvalue problem. Such tr
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5487 2014-07-14 16:25 LPP.m
----------- --------- ---------- ----- ----
5487 1
相关资源
- 数学建模实验报告非线性规划
- 非线性大作业-二阶机械臂控制仿真
- 一种非线性PID控制器建模与仿真
- 标准粒子群算法求解非线性方程
- 基于LM算法的非线性最小二乘法拟合
- 非线性方程组的数值解法
- lingo maxmin 动态规划问题
- 支持向量机线性核函数、非线性核函
- GAMS语法的介绍以及用GAMS求解规划问题
- 基于backstepping的船舶航向自适应鲁棒
- 拟牛顿法求解非线性方程组
- 单自由度非线性体系线加速度法电算
- 利用SPSS 拟合非线性回归模型
- On Nonlinear Fractional Programming
- 非线性扩张状态观测器的一种设计方
- 求解非线性规划的原始对偶内点法
- 斯坦福大学SNOPT大型非线性优化器
- 1994Nonlinear Dynamics and Chaos - Strogatz
- methods for nonlinear least square problems
- BP神经网络的非线性系统建模——非线
- 一种新型非线性PID控制器
- 自抗扰程序 跟踪微分器、扩张状态观
- 最优化与kkt条件81318
- 分步傅里叶法解NLS方程的源代码
- 流水线ADC设计中的数字校淮算法与实
- 最小二乘法线性非线性拟合
- 一类非仿射非线性时滞系统的动态状
- 2020年TI杯江苏省大学生电子设计竞赛
- 非线性耦合器的论文
- 很好的非线性调频信号的产生程序
评论
共有 条评论