Thread Subject: Problem with svmclassify function

Subject: Problem with svmclassify function

From: Mayank Gupta

Date: 8 Feb, 2012 06:40:28

Message: 1 of 2

Hi

I am a beginner for the MATLAB software.

I am using SVM classifier to classify data that I am using in my research work, for this I am using a function svmclassify() available in BioInformatics toolbox of Matlab.

When I am using a command
classes = svmclassify(svmStruct,data(test,:),'showplot',true);

It is displaying a message...............
Warning: An error was encountered during plotting.
Invalid object handle
> In svmclassify at 139

I have gone through the coding of svmclassify() and also through this line number 139. I am not able to understand what is the problem.

Can anyone suggest what may be the problem? How to correct it? And if not possible is there any way to plot the graph for the same because it is working fine when I am using the command.....classes = svmclassify(svmStruct,data(test,:));

Will be grateful for your help, Thanks in advance

Subject: Problem with svmclassify function

From: nitesh

Date: 25 Mar, 2012 10:14:12

Message: 2 of 2

"Mayank Gupta" <mayank9854@yahoo.co.in> wrote in message <jgt5cs$ra6$1@newscl01ah.mathworks.com>...
> Hi
>
> I am a beginner for the MATLAB software.
>
> I am using SVM classifier to classify data that I am using in my research work, for this I am using a function svmclassify() available in BioInformatics toolbox of Matlab.
>
> When I am using a command
> classes = svmclassify(svmStruct,data(test,:),'showplot',true);
>
> It is displaying a message...............
> Warning: An error was encountered during plotting.
> Invalid object handle
> > In svmclassify at 139
>
> I have gone through the coding of svmclassify() and also through this line number 139. I am not able to understand what is the problem.
>
> Can anyone suggest what may be the problem? How to correct it? And if not possible is there any way to plot the graph for the same because it is working fine when I am using the command.....classes = svmclassify(svmStruct,data(test,:));
>
> Will be grateful for your help, Thanks in advance

After training your dataset with 'svmtrain' and with 'Showplot' option .... try svmclassify without closing the figure obtained from 'svmtrain'.

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
scmclassify Mayank Gupta 8 Feb, 2012 01:44:14
rssFeed for this Thread

Contact us at files@mathworks.com