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
{{ message }}
Repository navigation
Extracting learned parameters from a QLearning instance #1861
Good point, I think providing a function to access the learned network should solve the issue. I can open a PR, unless you already have something ready?
@zoq
Let me have a look; I will send over a pull request later this week.
Is there any other agent that already does this (so I can mimic the same code and naming style)?
If not, would you prefer that I add an accessor to the parameters only (return type arma::mat), or a copy of the entire trained model (with layers etc.) (return type NetworkType).
I would go with the a getter/setter for the complete network, afterwards a user could do LearningNetwork().Parameters() to e.g. get the learned parameter. Here is an example:
Activity
zoq commentedon Apr 14, 2019
Good point, I think providing a function to access the learned network should solve the issue. I can open a PR, unless you already have something ready?
cascala commentedon Apr 14, 2019
@zoq
Let me have a look; I will send over a pull request later this week.
Is there any other agent that already does this (so I can mimic the same code and naming style)?
If not, would you prefer that I add an accessor to the parameters only (return type arma::mat), or a copy of the entire trained model (with layers etc.) (return type NetworkType).
zoq commentedon Apr 14, 2019
I would go with the a getter/setter for the complete network, afterwards a user could do
LearningNetwork().Parameters()to e.g. get the learned parameter. Here is an example:mlpack/src/mlpack/methods/ann/gan/gan.hpp
Lines 289 to 292 in 00d07ea
Let me know what you think.
cascala commentedon Apr 16, 2019
Addressed in pull request #1865
rcurtin commentedon Apr 16, 2019
Let's not close the issue until the fix is merged.
zoq commentedon Apr 18, 2019
Fixed in #1865.