Replies: 1 comment 4 replies
-
Let's say your model is structured as below:
def model_points():
return all_model_points().iloc[start_mp:end_mp]
You can restructure the model by creating a new space and put model----Projection----result_output()
| +--model_points()
| +--inp<-----InputData
|
|
+-InputData----all_model_points()
+--start_mp
+--end_mp Names in model.Projection.inp = model.InputData Then, change the formulas in def model_points():
return inp.all_model_points().iloc[inp.start_mp:inp.end_mp] |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I want to get some advice for getting benefit of caching effect when I run large amount of lines.
I made a vecorized model and tried to run more than 10,000 lines at once.
As far as I checked, my vectorized model has the best performance when I assigned 1000 lines at once on my machine.
So, I tried to split 10,000 lines to 10 groups (each by 1000 lines) and looping the run 10 times.
At this point, I want to find some way to get the effect of caching for every looping.
For the first loop, all the variable data(modelpoint, assumption data table, product information table and etc...) have to be read.
However, after the first loop, I think there is some way to use the data the model read in the former loop so that the run
can just focus on the variables that have to be newly updated.
(below is the code I use)
Could you recommend any way I can get the benefit of caching?
Thanks a lot and have a nice weekend!
Beta Was this translation helpful? Give feedback.
All reactions