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

fix geomean #2

Merged
merged 2 commits into from
Jan 6, 2024
Merged

fix geomean #2

merged 2 commits into from
Jan 6, 2024

Conversation

JernKunpittaya
Copy link
Collaborator

Fix geomean & its corresponding benchmark

From previously wrong constraint:
(torch.abs((torch.log(self.w)*X.size()[1])-torch.sum(torch.log(X)))<=torch.log(torch.tensor(1.01))
To (torch.abs((torch.log(self.w)*X.size()[1])-torch.sum(torch.log(X)))<=X.size()[1]*torch.log(torch.tensor(1.01))

Copy link
Member

@mhchia mhchia left a comment

Choose a reason for hiding this comment

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

🙏 Feel free to merge anytime

@JernKunpittaya JernKunpittaya merged commit 8fe93d0 into main Jan 6, 2024
@JernKunpittaya JernKunpittaya deleted the where branch January 6, 2024 10:53
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