svmscale libsvm Toolbox svmtrain

libsvm Toolbox >> libsvm Toolbox > svmtoy

svmtoy

shows the two-class classification boundary of the 2-D data

Calling Sequence

svmtoy(label_vector, instance_matrix, options, contour_level)

Parameters

label_vector:

N by 1, has to be two-class

instance_matrix:

N by 2

options:

default '',

contour_level:

default [0 0],

Description

svmtoy shows the two-class classification boundary of the 2-D data

Examples

instance_matrix = [rand(20,2); -1*rand(20,2)];
label_vector=[zeros(20,1);ones(20,1)];
svmtoy(label_vector, instance_matrix)

svmtoy(label_vector, instance_matrix,"-c 1000 -g 0.5",[-1 0 1])

Authors

svmscale libsvm Toolbox svmtrain