does RegressionTree.fit see the predictors as nominal variables or ordinal variables if you set 'CategoricalPredictors' to 'all'?
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
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!
Réponses (1)
Ilya
le 4 Avr 2012
0 votes
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.
Cette question est clôturée.
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!