私の特徴ベクトルが(x1、x2、... xn)であるとしましょう
libSVM を使用して 1 クラスの SVM をトレーニングするためのコードを教えてください。
相互検証を使用してパラメーターを学習するにはどうすればよいですか。
これはあなたを助けるかもしれません
label=ones(Number Of your training instances,1); % You should generate labels for your only class!
model = svmtrain( label, Training Data , '-s 2 -t 2 -n 0.5' ) ; % You can change the parameters
[predicted_label,accuracy]=svmpredict(TestLabels,Test Set, model);