help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libsvm


From: dariodematties
Subject: Re: libsvm
Date: Tue, 18 Apr 2017 07:23:37 -0700 (PDT)

Hello,

I've made a simple test in libsvm on octave, with data provided by the same
libsvm soft

octave:2> [heart_scale_label, heart_scale_inst] =
libsvmread('../heart_scale');
octave:3> whos
Variables in the current scope:

   Attr Name                   Size                     Bytes  Class
   ==== ====                   ====                     =====  ===== 
        heart_scale_inst     270x13                     40592  double
        heart_scale_label    270x1                       2160  double

Total is 3780 elements using 42752 bytes

octave:4> model = svmtrain(heart_scale_label, heart_scale_inst, '-c 1 -g
0.07');
*
optimization finished, #iter = 134
nu = 0.433785
obj = -101.855060, rho = 0.426412
nSV = 130, nBSV = 107
Total nSV = 130
octave:5> [predict_label, accuracy, dec_values] =
svmpredict(heart_scale_label, heart_scale_inst, model);
Accuracy = 86.6667% (234/270) (classification)
octave:6> 

It seems to be working well.

I'll continue reporting.



--
View this message in context: 
http://octave.1599824.n4.nabble.com/libsvm-tp4682762p4682905.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]