Skip to content

The questions in data_source.py #142

@SeonghwanSeo

Description

@SeonghwanSeo

Hello,

Thanks for your great work!

I work on the gflownet-based project, and I wonder the role of following code block:
https://github.com/recursionpharma/gflownet/blob/trunk/src/gflownet/data/data_source.py [Line 254-256]

# Override the is_valid key in case the task made some objs invalid
for i in valid_idcs:
    trajs[i]["is_valid"] = True

Can I know why this code block does not mask the invalid objectives' trajectories as follows?

# Override the is_valid key in case the task made some objs invalid
for i, traj in enumerate(trajs):
    if i not in valid_idcs:
        traj["is_valid"] = False

Best regards,
Seonghwan Seo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions