Skip to content
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

question about p_reg in p_train #46

Open
yeshenpy opened this issue Jun 5, 2020 · 0 comments
Open

question about p_reg in p_train #46

yeshenpy opened this issue Jun 5, 2020 · 0 comments

Comments

@yeshenpy
Copy link

yeshenpy commented Jun 5, 2020

I went through the code and found a problem I didn't understand.
image
I think of p_reg as a regular term, and the regular term as a constraint on the learning parameters.
But I found that the act_Pd. flatparam() in the code p_reg = TF.reduce_mean (TF.square (act_pd.flatparam())) gets the network output, that is to say, the return of the flatparam function is not the learning parameters,Instead , It's network output How to explain this regularization.This confuses me and I look forward to your advice.
for example of act_Pd. flatparam() :
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant