Slow Treebagger Prediction Time for One Datapoint
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I'm looking to use a Treebagger model as part of a project, and I'd like to call this model in a loop, with inference time under 0.1 seconds. I've trained a few models on data, and I've noticed that calling predict(Model,Examples(1)) takes ~2 seconds, while calling predict(Model,Examples(1:1000)) takes a similar amount of time, and predict(Model,Examples(1:10000)) takes ~3 seconds. This seems to mean that there's a startup time associated with calling predict(Model,Examples()).
Is there a way to use this Treebagger model in a loop, and avoid the ~2 second startup time each time I call it?
Note: when testing this on individual trees from the Treebagger model, I've found a proportionally similar startup time for predict().
Any help is appreciated.
Best,
SP
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Classification Ensembles 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!