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 the randomness while in benchmarking mode #294

Merged
merged 2 commits into from
Jul 16, 2024

Conversation

Adamantios
Copy link
Collaborator

The randomness should only be set once when benchmarking.

@@ -137,12 +137,14 @@ def update_weighted_accuracy(self) -> None:
for tool, acc_info in self.accuracy_store.items()
}

def select_tool(self, randomness: RandomnessType) -> Optional[str]:
def select_tool(self, randomness: RandomnessType = None) -> Optional[str]:
Copy link
Collaborator

Choose a reason for hiding this comment

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

you do not need to change the calls to this function so that only once the seed is past as a parameter?

@Adamantios Adamantios merged commit 1e408d4 into main Jul 16, 2024
18 checks passed
@Adamantios Adamantios deleted the fix/benchmarking-randomness branch July 16, 2024 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants