2

I've developed a model using Libsvm in Matlab. I've choose best parameters using CV and I obtained the model training the whole dataset. I use normalization to get better results:

 maximum=max(TR)+0.00001;
 minimum=min(TR);

 for i=1:size(TR,2)
             training(1:size(TR,1),i)=double(TR(1:size(TR,1),i)-maximum(i))/(maximum(i)-minimum(i));
 end

Now how can I use directly my model to obtain classification for new data? I mean for records that haven't class label. Do I have to manually build functions from model information?

4

1 回答 1

0

您是否正在使用libsvmtrain您的训练数据进行训练?如果是这样,则有一个输出参数可用于对测试/未来数据进行分类。svmpredict然后将该输出结构与测试数据一起传递。

于 2012-05-22T15:34:02.710 回答