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

Automatically compute normalization for theta #55

Open
Dingel321 opened this issue Mar 12, 2024 · 2 comments
Open

Automatically compute normalization for theta #55

Dingel321 opened this issue Mar 12, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Dingel321
Copy link
Collaborator

Instead of manually computing the normalization, one could also just automatically compute and save it in the NPE object.

@Dingel321 Dingel321 added the enhancement New feature or request label Mar 12, 2024
@aevans1
Copy link
Collaborator

aevans1 commented Mar 12, 2024

For this case, could one then use the output of the flow as approximating the joint between param and data instead of the posterior?

@Dingel321
Copy link
Collaborator Author

Ah, here I mean the parameters in the training readme "THETA_SCALE" and "THETA_SHIFT". They are used to scale the theta, which is usually in units in the index, so from 0 to num_models to some number between -1 and 1. This helps with the convergence of the NN and might not be clear to a new user. Also, we can just get the number from the model file.
So ni practice i choose them always THETA_SCALE = THETA_SHIFT = max_index / 2. In this case theta gets rescaled so that its always between -1 and 1. The formula for rescaling is theta_rescaled = theta / THETA_SCALE - THETA_SHIFT.

PS: But it is in interesting question!! Since normally we don't have the normalization

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

No branches or pull requests

2 participants