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

Detailed Balance loss #256

Merged
merged 4 commits into from
Nov 28, 2023
Merged

Detailed Balance loss #256

merged 4 commits into from
Nov 28, 2023

Conversation

alexhernandezgarcia
Copy link
Owner

This PR implements the detailed balance objective, building upon some of the code developed for the forward-looking loss.

Experiments with the Grid and the Tetris on wandb: https://wandb.ai/alexhg/detailedbalance

loss = (
(logflow_parents + logprobs_f - logflow_states - logprobs_b).pow(2).mean()
)
return loss, loss, loss
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think here it is possible to distinguish between terminal and non-terminal losses, so I'd do that instead of returning the full loss tree times

Copy link
Owner Author

Choose a reason for hiding this comment

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

ooooook I'll do it

Copy link
Owner Author

Choose a reason for hiding this comment

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

@alexhernandezgarcia alexhernandezgarcia merged commit 7a6bcdb into new_fl_loss Nov 28, 2023
1 check passed
@josephdviviano josephdviviano deleted the db-loss branch February 7, 2024 15:44
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.

2 participants