Presiction time in Classification Lerner
9 次查看(过去 30 天)
显示 更早的评论
I would like to mesure the time that classifier takes for prediction. I see that in Classification Lerner toolbox there is parameter prediction speed obs/sec. Can anyone explain what does the obs/sec mean? How can I convert it in to time? Is it possible to calculate prediction time only for correct classifications?
0 个评论
回答(1 个)
Aditya Patil
2021-2-15
obs/sec refers to number of observations processed per second. It's inverse would be the time taken for one prediction in seconds.
To calculate time taken for only the correct predictions, you can pass only the correctly predicted observations to the predict function, and calculate the time it takes for it to complete. You can find this option under Editor -> Run -> Run and Time
3 个评论
Aditya Patil
2021-2-16
Currently, it's not possible to do so using the app. Can you elaborate on the use case? Generally for most models, there won't be any difference in time between correct and incorrect predictions. Even for models where it exists, it should be insignificant.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Statistics and Machine Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!