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

Ent param init #58

Merged
merged 9 commits into from
Nov 8, 2024
Merged

Ent param init #58

merged 9 commits into from
Nov 8, 2024

Conversation

stroblme
Copy link
Member

@stroblme stroblme commented Nov 6, 2024

This PR fixes how n_samples is being treated in the meyer_wallach method.
If the parameter is None or <1, then the model internal parameters are being used.
This required setting the model internal parameters in each forward call.

Melvin Strobl added 3 commits November 6, 2024 15:59
Signed-off-by: Melvin Strobl <[email protected]>
Signed-off-by: Melvin Strobl <[email protected]>
@pep8speaks
Copy link

pep8speaks commented Nov 6, 2024

Hello @stroblme! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2024-11-08 13:16:51 UTC

Melvin Strobl added 3 commits November 6, 2024 16:12
qa
Signed-off-by: Melvin Strobl <[email protected]>
Signed-off-by: Melvin Strobl <[email protected]>
Signed-off-by: Melvin Strobl <[email protected]>
@stroblme
Copy link
Member Author

stroblme commented Nov 6, 2024

  • resolve problem of ArrayBox elements: when using inside an optimisation loop, params become an arraybox which cannot be treated as a numpy array

Signed-off-by: Melvin Strobl <[email protected]>
Signed-off-by: Melvin Strobl <[email protected]>
Copy link
Collaborator

@majafranz majafranz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks!

Signed-off-by: Melvin Strobl <[email protected]>
@stroblme stroblme merged commit 3fc704b into main Nov 8, 2024
4 checks passed
@stroblme stroblme deleted the ent_param_init branch November 8, 2024 13:40
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

Successfully merging this pull request may close these issues.

3 participants