Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: ClassificationKNN.fit
Replies: 4   Last Post: Jun 1, 2012 1:10 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
besbesmany

Posts: 109
Registered: 5/14/11
Re: ClassificationKNN.fit
Posted: Jun 1, 2012 11:23 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

is the last version of mtalab 2012b or 2012a
"Ilya Narsky" <inarsky@mathworks.com> wrote in message <jqam3e$hrp$1@newscl01ah.mathworks.com>...
> "besbesmany besbesmany" <besbesmany@yahoo.com> wrote in message
> news:jqal4k$dfq$1@newscl01ah.mathworks.com...

> > I'm trying to run ClassificationKNN.fit
> >
> > mdl = ClassificationKNN.fit(tr,label,'NumNeighbors',5,'kfold',5);
> > [label,score,cost] = predict(mdl,test);
> >
> > but it gives me error
> > ??? Undefined variable "ClassificationKNN" or class
> > "ClassificationKNN.fit".
> >
> > i'm using matlab 2011a
> >

>
> ClassificationKNN was introduced in 2012a.




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.