Standardization of KNN Variables

When I try to follow the API for fitting data to a KNN model (<http://uk.mathworks.com/help/stats/fitcknn.html)>, it uses the code "Mdl = fitcknn(X,Y,'NumNeighbors',5,'Standardize',1)" but "'Standardize',1" is apparently not a valid parameter name. Can anyone shed some light on this?
Kind regards Jason

 採用された回答

Brendan Hamm
Brendan Hamm 2015 年 9 月 16 日

0 投票

This was added to the fitcknn function in R2014b. If you are using a previous version then you do not have access to this Property. You can check this with:
ver
The website always maintains the documentation of the latest version (currently 2015b). I suggest for older versions you consult the documentation provided with the software:
doc fitcknn % Will give you documentation for your version.

1 件のコメント

Jason
Jason 2015 年 9 月 17 日
That's great, thanks!

サインインしてコメントする。

その他の回答 (1 件)

Mohammad Rajabi
Mohammad Rajabi 2017 年 9 月 13 日

0 投票

Would you please explain this parameter, namely "Standardize"? and when is it recommended to be used?

質問済み:

2015 年 9 月 16 日

回答済み:

2017 年 9 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by