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

Preserve the identities of value/observed variables #248

Merged

Conversation

brandonwillard
Copy link
Member

This PR changes the IR generation process so that value/observed variables are never rewritten and their identities are necessarily preserved in the log-probability results. Basically, we create dummy variables for them during IR rewriting and replace them with the value variables at the end (i.e. when log-probabilities are constructed). Most of the changes have to do with the special case of transformations, which demand the ability to change transformed value variables after IR rewriting.

@brandonwillard brandonwillard added important This label is used to indicate priority over things not given this label graph rewriting Involves the implementation of rewrites to Aesara graphs refactoring A change that improves the codebase but doesn't necessarily introduce a new feature labels May 6, 2023
@brandonwillard brandonwillard force-pushed the preserve-valued-var-identity branch 2 times, most recently from 241058c to 43bb99b Compare May 6, 2023 06:18
@brandonwillard brandonwillard enabled auto-merge (rebase) May 6, 2023 06:20
@brandonwillard brandonwillard merged commit 95a4ceb into aesara-devs:main May 6, 2023
11 checks passed
@brandonwillard brandonwillard deleted the preserve-valued-var-identity branch May 6, 2023 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
graph rewriting Involves the implementation of rewrites to Aesara graphs important This label is used to indicate priority over things not given this label refactoring A change that improves the codebase but doesn't necessarily introduce a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant