How to create a table with all the path data from the decision tree?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 4 Jan 2019
Modifié(e) : MathWorks Support Team
le 18 Avr 2024
I have a tree generated from the "fitrtree" function. I need all paths and it's corresponding data as individual columns in a table. Can I do that?
Réponse acceptée
MathWorks Support Team
le 18 Avr 2024
Modifié(e) : MathWorks Support Team
le 18 Avr 2024
Unfortunately, there is no direct functionality in MATLAB that can create this type of table.
However, you can create such table manually by using the "fitrtree" class properties such as "PredictorNames" and "ResponseName".
Please refer to the following documentation for more information regarding this properties:
I have conveyed this information to the developers and they may consider this as an enhancement for a future release.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Generate Tests dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!