Matlab Predict function is not efficient

6 Ansichten (letzte 30 Tage)
Gehan
Gehan am 27 Mai 2024
Kommentiert: Nerijus am 5 Jun. 2025
Matlab Predict function is not efficient...Perhaps because it is general suitable for all models. Is there a way to speed it? I am working with incremental regression kernel. Predict takes more time than updatemetricsandfit!

Antworten (1)

John D'Errico
John D'Errico am 27 Mai 2024
No code is ever as fast as users want. If you know how to make it faster, then write your own version. If your version really is better, faster, etc., then send it into a feature request to MathWorks. Or at the very least, post it on the file exchange for others to make use of too. If so, then you can contribute to making the MATLAB world a better place. It is entirely possible that you have some great insight on how to improve the code.
However, if you can't write a faster version, then maybe there is a valid reason, and all you are doing here is ranting for no purpose. Remember that your computer is not infinitely fast, and that some problems simply take time to solve.
  1 Kommentar
Nerijus
Nerijus am 5 Jun. 2025
Is it posstible that predict function is three times slower than fit?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Produkte


Version

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by