Thread Subject: svmtrain does not respect boxconstraint

Subject: svmtrain does not respect boxconstraint

From: Vishwajeet

Date: 15 Dec, 2011 06:37:08

Message: 1 of 1

Below is an example of the case where SMO algorithm of svmtrain function (in matlabs bioinformation toolbox) does not respect the boxconstraints.

The value of boxconstraint parameter is passed as 20, one of the Alpha (dual variable) takes the value 22.5, which it should not.

The matlab version being used is R2010b.

Thanks

>> X = [1 1; 1 2; 1 3; 2 1; 2 2; 2 3; 3 1; 3 2; 3 3];
>> Y = [1; 1; 1; 1; -1; 1; -1; -1; -1];
>> [svm_struct, svIndex] = svmtrain(X, Y, 'METHOD', 'SMO', 'SMO_OPTS', opts, 'SHOWPLOT', true, 'BOXCONSTRAINT', 20, 'autoscale', false);
seqMinOpt finished
seqMinOpt status:
Number of iterations: 24
Execution time: 0.015600 seconds
Value of stopping criterion: 0.000000
Value of objective function: 47.000000
All SVs: 4
Free SVs: 3
---------------------------
>> svm_struct.Alpha

ans =

  -11.2500
   22.5000
  -13.2500
    2.0000

>>

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
svm bioinfo svm... Vishwajeet 15 Dec, 2011 01:39:10
rssFeed for this Thread

Contact us at files@mathworks.com