-
Notifications
You must be signed in to change notification settings - Fork 107
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
Controller is not reset during simulation of patients #43
Comments
Yes, that is a real bug. Need to reset it here simglucose/simglucose/simulation/env.py Line 136 in 9dfa3c4
Thanks for the report. Let me know if you are interested in a PR. |
I'm interested and will open a PR soon. |
Hi, could you explain a bit more about what this issue is? I've been using the batch simulation regularly, and would be interested in knowing if this affects any of my experiments. What happens when the controller does not reset? |
In my case I trained a neural network that used a continuous chain of states and stored the internal state of the neural network (LSTM; hidden state). |
This issue is going to be solved when this PR is merged #47 . |
I discovered that in a batch simulation, there happens no controller reset between patient simulations, even if the controller reset() method is specified. I think this is a pretty serious flaw because in most cases only the first simulated patient will give correct results.
I will prepare a PR for that issue, but wanted to hear your opinion on this issue first.
The text was updated successfully, but these errors were encountered: