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

DAG environment #26

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

tristandeleu
Copy link

A WIP implementation of the DAG environment from DAG-GFlowNet.

Comment on lines +100 to +103
# TODO: The update of the transitive closure of the graphs
# (required to get the forward masks) depends on the last action
# applied. Reference: https://github.com/tristandeleu/jax-dag-gflownet/blob/53350bbfba3ab24f9ffa8196a3de42f139d9c5cc/dag_gflownet/env.py#L112-L116
self._closure_T = self._closure_T
Copy link
Author

Choose a reason for hiding this comment

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

@saleml The update of the tensor necessary for computing the forward masks (_closure_T) depends on the last action applied (the one that led to the current state). We could implement it by keeping track of the last state inside the state object and reconstructing the action this way, but there may be a cleaner way to do that.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks, I'm looking into it now

@josephdviviano
Copy link
Collaborator

@tristandeleu I know this is quite old work but I would like to work on getting it into torchgfn. Has there been further progress on the method / environment side that I should integrate into this PR?

I need to do some work to align this with our new streamlined API in any case.

Thanks!

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