LibtorchNeuralNetControl in place of LibtorchDRLControl object #31092
Unanswered
Luca-R27
asked this question in
Q&A Modules: General
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Following up on this—any updates or guidance would be appreciated! Thank you. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello MOOSE users,
I was trying to reproduce the example in
https://mooseframework.inl.gov/modules/stochastic_tools/examples/libtorch_drl_control.html
The training procedure goes fine, I obtain the same plot for the reward as in the documentation page
After the training step, there is only a very brief sentence for the final step, namely reading existing NN parameters:
"Following the training procedure, we can replace the LibtorchDRLControl object with LibtorchNeuralNetControl to evaluate the final version of the neural network without the additional randomization."
Could you please elaborate on this slightly? At first I supposed that this meant using the flag in the Controls block to switch from the first to the second (changing to inactive = 'src_control')
The result I get is not what is in the final plot of the documentation. A warning sign might also be that the mynet_control.net in the input file is not present in the folder, I had to change to control.net which is indeed produced during the training step.
This is what I get using LibtorchNeuralNetControl, as opposed to a target temperature that is much more tightly close to the target in the instructions (I also added the result of an intermediate (350) and the final (440) simulation of the training to convince myself that the training was going well).
How do I follow the instruction "replace the LibtorchDRLControl object with LibtorchNeuralNetControl "?
Thank you,
Luca
Beta Was this translation helpful? Give feedback.
All reactions