-
-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MonteCarloSummary for intermediate MonteCarlo results #355
Comments
In draft the idea 2. is:
The code can be optimized of course but the approach could be a nice option not to save the solution but to reduce the solution to statistic parameters on each step using |
That looks really great. I can't think of a good user interface for it right now though, but this would be super helpful! |
My current draft wrapper for
Solver outputs two arrays: The main q is can this approach support multi threading? I've tried to run it with |
I don't think that there's much of an optimization to be done here. While changing from a dictionary would make it technically faster, the amount that you're actually accessing the dictionary is probably small enough that it doesn't effect timings. As for the multithreading, I'm not sure why it would have an issue since the batch reductions are called after the threaded loops. I think that this may just be related to the other multithreading error that was mentioned before that I haven't been able to track down. Note that multithreading in Julia is going to get an overhaul: so I wonder how much should wait on that. |
The idea is that it is often useful to get
MonteCarlo
intermediate results in a form of statistic summaryMonreCarloSummary
. I think it could be implemented in two ways (let's say we need to obtainMonreCarloSummary
eachn
iterations ofnum_monte
):MonreCarloSummary
eachn
iterations but doesn't reduce the solution data as it will be needed for futureMonreCarloSummary
calculationsMonreCarloSummary
and reduces (deletes) all the solution data eachn
iterations. Here as we delete the solution data and save onlyMonreCarloSummary
the reduction function should use some "online" algorithms to calculate and approximate statistic parameters eachn
iterations using, for example, OnlineStats.jlThe text was updated successfully, but these errors were encountered: