The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: KNN classification model with categorical and numerical data
Replies: 1   Last Post: Dec 3, 2012 12:33 PM

Advanced Search

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

Posts: 20
Registered: 9/29/09
KNN classification model with categorical and numerical data
Posted: Dec 3, 2012 8:32 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


I'm wanting to fit a KNN classification model to data. The data has numerical AND categorical variables in it.

I know that ( allows you to specify 'CategoricalPredictors' as
- 'all' ? All predictors are categorical.
- [] ? No predictors are categorical.

However, is there a way to specify which are categorical and which are numerical since I have both?

If not, how do I use both types?


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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.