You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Continued from #45)
Models based on BasicTerm_S or BasicTerm_SE are slow. There are couple of ways to improve the speed.
Profile the model using get_stacktrace / stop_stacktrace and find formulas that are taking time and rewrite them to run faster. This page explains how to use the functions.
Develop the models from BasicTerm_M or BasicTerm_ME instead. These models are designed to run fast. On the other hand, BasicTerm_S or BasicTerm_SE are more for model validations.
Run the model in parallel using ipyparallel. Split a run in N runs by splitting the in-force file, where N is the number of logical CPU cores on your machine. This blog post discusses how to do it in more detail. If there were no overhead, the run should get N times faster, but in reallity, the improvment should be lower than N.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
(Continued from #45)
Models based on
BasicTerm_S
orBasicTerm_SE
are slow. There are couple of ways to improve the speed.Profile the model using get_stacktrace / stop_stacktrace and find formulas that are taking time and rewrite them to run faster. This page explains how to use the functions.
Develop the models from
BasicTerm_M
orBasicTerm_ME
instead. These models are designed to run fast. On the other hand,BasicTerm_S
orBasicTerm_SE
are more for model validations.Run the model in parallel using ipyparallel. Split a run in N runs by splitting the in-force file, where N is the number of logical CPU cores on your machine. This blog post discusses how to do it in more detail. If there were no overhead, the run should get N times faster, but in reallity, the improvment should be lower than N.
Beta Was this translation helpful? Give feedback.
All reactions