-
Notifications
You must be signed in to change notification settings - Fork 39
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
Benchmark.prepare_backend() #204
Conversation
@recursix that's a bit hacky but it should do for now |
browsergym/experiments/src/browsergym/experiments/benchmark/base.py
Outdated
Show resolved
Hide resolved
@@ -55,6 +55,7 @@ class Benchmark(DataClassJsonMixin): | |||
high_level_action_set_args: HighLevelActionSetArgs | |||
is_multi_tab: bool | |||
env_args_list: list[EnvArgs] | |||
full_reset_script: Optional[str] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmm this is a symptom that we should have went with a class hieararchy instead of a single class for all benchmarks
@@ -50,6 +53,29 @@ def __init__( | |||
|
|||
self.credentials = ACCOUNTS | |||
|
|||
def full_reset(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
helper function instead of code duplicate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean code duplicate? This code is new
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's 90% the same code on the side of visualwebarena
full_reset_script
No description provided.