⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nca_obj.m

📁 功能为neighborhood components analysis
💻 M
字号:
%% wrapper for nca.cc which takes care of multiplying in A and turning% it into a minimization problem.%% charless fowlkes% fowlkes@cs.berkeley.edu% 2005-02-23%function [F,dF] = nca_obj(Avec,X,Y)ID = size(X,2);A = reshape(Avec,length(Avec)/ID,ID);[F,dFa] = nca(A,X,Y,A*X');dF = 2*A*dFa;dF = -dF(:);F = -F;AX = (A*X')';perr = class_error((A*X')',Y);figure(2); scatter(AX(:,1),AX(:,2),30,perr,'filled'); title('conjgate gradient state');drawnow;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -