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 do I obtain the parameters required by RealMappedFourierEntropyModelBase? #4

Open
litianyi926 opened this issue Oct 14, 2024 · 0 comments

Comments

@litianyi926
Copy link

The RealMappedFourierEntropyModelBase class in the code requires the following parameters:

coef = jax.lax.complex(self.real, self.imag)
scale = nn.softplus(self.scale)
offset = self.offset

How should I determine these parameters? From codex-main/codex/ems/fourier_test.py and equinox.py, it can be seen that in your test methods, these parameters are obtained by passing rng, num_pdfs, num_freqs: int = 10, init_scale: float = 1e-3:

em = equinox.RealMappedFourierEntropyModel(
jax.random.PRNGKey(0), num_freqs=num_freq, num_pdfs=num_dims, init_scale=1
)

How are these parameters determined? Do they need to be trained, or should I set them to the same default values as you have?

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