How to include the model created using TreeBagger in a user-defined function to predict responses using the model?
Ältere Kommentare anzeigen
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"?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Classification Ensembles finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!