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

refactor(datasets) Rename the private attributes in InnerDirichlet #3665

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

adam-narozniak
Copy link
Contributor

@adam-narozniak adam-narozniak commented Jun 21, 2024

Issue

The naming of the class attributes resulting from the constructor paramters is not consistent.
The alpha is named _initial_alpha.

Description

There are two _alpha attributes: initial alpha (which can be as simple as an int or float) and fully transformed alpha (proper shape for sampling from dirichlet).
The issue with inconsistent naming is trouble with saving this class in automatic manner to a config. The _alpha is save which is None but instead the _initial_alpha should be saved (to be albe to later on instantiate the object based on the config).

Proposal

Rename:

  • _alpha to _full_alpha
  • _initial_alpha to _alpha

Related PRs

This is needed for: #3659

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.

1 participant