Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

None metrics #4902

Merged
merged 4 commits into from Dec 5, 2022
Merged

None metrics #4902

merged 4 commits into from Dec 5, 2022

Conversation

mojtaba-komeili
Copy link
Contributor

Patch description
Running the projects.cringe.cringe_loss:ContrastiveTransformerGeneratorAgent, noticed some issues about calculating metrics for some None values; this was crashing the model during the training.
This was due to dropping some of the values in the Generator Agent (example).
This patch fixes that by ignoring the None values in an observation.

@klshuster
Copy link
Contributor

i think this is ok? Maybe CC @stephenroller --> is there a canonical way to handle averages of metrics where in some cases one of the Metrics is None?

Copy link
Contributor

@klshuster klshuster left a comment

Choose a reason for hiding this comment

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

i think this is ok

@mojtaba-komeili mojtaba-komeili merged commit 25df082 into main Dec 5, 2022
@mojtaba-komeili mojtaba-komeili deleted the none-metrics branch December 5, 2022 18:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants