필터 지우기
필터 지우기

Why am I getting empty matrix from svmpredict ??

조회 수: 1 (최근 30일)
Sharda
Sharda 2015년 5월 18일
I want to make predictions from a simple time series. The observations y=[11,22,33,44,55,66,77,88,99,110] at time x=[1,2,3,4,5,6,7,8,9,10]. I am using epsilon-SVR from libsvm toolbox.My code is as follows :
x1 = (1:7)'; % training set
y1 = [11, 22, 33, 44, 55, 66, 77]'; % observations from time series
options = ' -s 3 -t 2 -c 100 -g 0.05 -p 0.0003 ';
model = svmtrain(y1, x1, options)
x2 = (8:10)'; % test set
y2 = [88, 99, 110]'; % hidden values that are not used for training
[y2_predicted, accuracy] = svmpredict(y2, x2, model)
but the svmpredict function is giving me null output as shown below
y2_predicted =
[]
accuracy =
[]
Please help me resolve this .I am new to libsvm.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by