I am estimating a very large model with an expanding window to test for out of sample RMSE performance. Because the estimation is very slow, I am looking for every possible way to speed it up, even at the price of some accuracy.
For now, I added the options:
- fast_kalman_filter (I hope it is useful)
- no_posterior_kernel_density (not sure exactly it is helping)
- optim=(‘TolFun’,0.01), which helps a lot at the cost of accuracy.
- I am using previous estimation results as the new initial guess for newer estimation with “estimated_params_init”
- I disabled SMT (hyper-threading) for my AMD CPU, and apparently, now it is twice as fast (previously it used around 50% of the CPU)
I am doing some tests for different mode_compute. Which one is usually faster?
Does anyone know other tips for speeding up the estimation procedure?
Also, the estimation spends a lot of time (could be half of the estimation time) after the last iteration, after displaying “Final value of minus the log posterior…” and before displaying the parameters values and std’s. I think it computes the hessian (with the “hessian” function), which I think I might not need (I am only interested in point forecast). Does anyone know a way to keep some of it?