Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用生物信息学工具箱来应用支持向量机。我正在使用 svmtrain 命令来训练我的分类器,但我不知道如何测量训练误差或在哪里可以找到此阶段的预测输出。任何人都可以帮助我,最好的问候,
要查看“训练错误”,只需将模型应用于训练数据。假设您使用标准的 Matlab 数据:
load fisheriris xdata = meas(51:end,3:4); group = species(51:end); model = svmtrain(xdata, group);
对数据使用 svmclassify:
predictions = svmclassify(model, xdata);
然后计算错误分类数据的比例:
disp( [group predictions ] )