does RegressionTree.fit see the predictors as nominal variables or ordinal variables if you set 'CategoricalPredictors' to 'all'?
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
As the title suggests I am curious to find out how MATLAB "views" the predictors if you state them as categorical? I have nominal predictors but I don't know if MATLAB sees them as such? Or maybe it doesn't matter as far as the resulting tree is concerned?
Thank you!
0 件のコメント
回答 (1 件)
Ilya
2012 年 4 月 4 日
0 投票
For trees, "categorical predictor" means "nominal predictor". If you had an ordinal predictor, you could just use it as is because distance between ordinal levels does not affect the tree construction.
0 件のコメント
この質問は閉じられています。
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!