How to include the model created using TreeBagger in a user-defined function to predict responses using the model?
Afficher commentaires plus anciens
How to include the model created using TreeBagger in a user-defined function to predict responses using the model?
I have used TreeBagger to create a random forest model called "Mdl". Now, I want to include "Mdl" in a separate user-defined function.
The function takes some input, "inputX" and performs a predict(Mdl,inputX).
The result from "predict" is the output for the function.
How can the function call the "Mdl"?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Classification Ensembles dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!