01 2016 档案
Linux中Matlab保存多个数据到同一个文件当中
摘要:% load pyrim % NumTrain = 50; % load machine %NumTrain = 150; % load housing % NumTrain = 300; % load abalone % NumTrain = 1000; % load bank32nh % Num
阅读全文
随机生成二维高斯分布类簇
摘要:mu = [11,10];sigma = [5,0;0 5]; rng default % For reproducibilityr1 = mvnrnd(mu,sigma,100);mu = [15,15];sigma = [2,0;0,5];r2 = mvnrnd(mu,sigma,100);m...
阅读全文
MATLAB 矩阵转化为灰度图
摘要:A=[ 1.00 0.96 0.98 0.88 0.94 0.61 0.96 0.80 0.98 0.89 0.96 1.00 0.94 0.90 0.95 0.71 0.96 0.83 0.90 0.88 0.98 0.94 1.00 0.84 0.91 0.54 0.93 0.73 0.97 0
阅读全文
MATLAB 损失函数画图
摘要:损失函数画图Hinge loss function:\[H(z) = max(0,1-z)\]$\psi$-learning loss function:\[{\phi _s}(z) = \left\{ {\begin{array}{*{20}{c}}s&{z 0}\\{1 - z}&{0 \le...
阅读全文
Wilcoxon test
摘要:clearload NPSVORname={'SCV1V1','SVC1VA','SVR','CSSVC','SVMOP','NNOP','ELMOP','POM',... 'NNPOM', 'SVOREX','SVORIM','SVORIMLin','KDLOR','GPOR','REDSV...
阅读全文
MATLAB画图
摘要:画图代码clear% http://www.peteryu.ca/tutorials/matlab/visualize_decision_boundaries% load RankData% NumTrain =200;load RankData2% X = [X, -ones(size(X,1),...
阅读全文