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

How does SingleVarianceNetwork participate in network training? #118

Open
xuyaojian123 opened this issue Aug 21, 2023 · 4 comments
Open

Comments

@xuyaojian123
Copy link

image

image
i have some questions i want to ask you. There is only one parameter of variance in this network. How does it participate in the training of the loss function? Why does the network converge when 1/s approaches 0? Many Thanks to you!

@xuyaojian123
Copy link
Author

xuyaojian123 commented Aug 24, 2023

anyone who can help me answer these questions?/(ㄒoㄒ)/~~

@kzhang2
Copy link

kzhang2 commented Sep 4, 2023

The network converges when 1/s approaches 0 because at that point the parameterized sigmoid function becomes a step function. Essentially, the step function should take on the value 0 outside the surface and 1 inside the surface (I might be getting this flipped).

@xuyaojian123
Copy link
Author

xuyaojian123 commented Sep 5, 2023

Thank you very much, but I still don't get it. Registering a parameter 'variance' in SingleVarianceNetwork, self. register_parameter('variance', nn.Parameter(torch.tensor(init_val))). But I don't see anywhere else where the parameter 'variance' is changed and how it participates in the network training.

@weihan1
Copy link

weihan1 commented Apr 7, 2024

the variance parameter participates in the forward pass during the alpha calculation.

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

3 participants