摘要: 应用了高斯核 clear,没有画ROC曲线ticload('C:\Users\Administrator\Desktop\Cancer.mat')mu=Cancer(1:444,:);zi=Cancer(445:end,:); %整理数据,第一列(1,2)作为标签cycle_N=1; %进行cycl 阅读全文
posted @ 2020-01-07 16:47 王雪! 阅读(600) 评论(0) 推荐(0) 编辑
摘要: 数据集需要自行处理,这里针对的是Cancer数据集 clearticload('C:\Users\Administrator\Desktop\Cancer.mat')mu=Cancer(1:444,:);zi=Cancer(445:end,:); %整理数据,第一列(1,2)作为标签cycle_N= 阅读全文
posted @ 2020-01-07 16:45 王雪! 阅读(892) 评论(0) 推荐(0) 编辑
摘要: 1.普通等高线 >>[x,y]=meshgrid(-5:0.1:5,-3:0.1:3); >>z=x.^2+y.^2; >>contour(x,y,z) 给普通等高线加标签 >>[C,h]=contour(x,y,z); >>set(h,'ShowText','on','TextStep',get( 阅读全文
posted @ 2019-07-31 14:09 王雪! 阅读(2101) 评论(0) 推荐(0) 编辑
摘要: 一、直角坐标系中的连续函数 1.简单绘图 >>x=[0:0.1:5]; >>y=sin(x); >>plot(x,y),xlabel('x')/*横坐标*/,ylabel('y')/**纵坐标/; 2.更精确的图 fplot('exp(-1.2*x).*sin(x)',[0,4])/*在(0,4)上 阅读全文
posted @ 2019-07-31 11:23 王雪! 阅读(519) 评论(0) 推荐(0) 编辑