首页 > 编程知识 正文

matlab如何绘制曲线,如何绘制标准曲线步骤

时间:2023-05-03 21:24:22 阅读:266047 作者:1031

给你一个例子:

准备数据

1、data:一个表达谱数据矩阵,行为样本,列为基因

2、risk:一个向量,各样本的分类向量

library('e1071')

library(ROCR)

train_data

train_label

train_label

obj

cost = 2^(0:2)),

tunecontrol = tune.control(sampling = "cross"))##找最优的gamma,和cost

best_gm

best_ct

model

kernel = "radial", gamma = best_gm, cost = best_ct, cross = 0)

pre_label

stat_res

accurary

sensitivity

specificity

pre_prob

pred

perf

plot(perf,colorize=TRUE)

auc.tmp

auc.value

AUC

auc.value

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。