How to include the model created using TreeBagger in a user-defined function to predict responses using the model?
Mostrar comentarios más antiguos
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"?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Classification Ensembles en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!