필터 지우기
필터 지우기

How to create a KNN classification model with categorical AND numerical data?

조회 수: 3 (최근 30일)
Graham
Graham 2012년 12월 3일
Hi,
I'm wanting to fit a KNN classification model to data. The data has numerical AND categorical variables in it.
I know that ClassificationKNN.fit (<http://www.mathworks.com/help/stats/classificationknn.fit.html>) 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?
Graham

답변 (0개)

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by