Skip to content

Commit

Permalink
change output metric for carbs
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Oct 13, 2024
1 parent 97bc1e0 commit d803cc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pokemonred_puffer/sweep.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ def launch_sweep(
wandb_params=WandbLoggingParams(project_name="Pokemon", run_name="Pokemon"),
)
params = sweep_config_to_params(base_config, sweep_config)
breakpoint()

carbs = CARBS(config=config, params=params)
sweep_id = wandb.sweep(
Expand Down Expand Up @@ -132,16 +131,17 @@ def launch_sweep(
elif (
run["state"]
in [
RunState.failed.value,
# RunState.failed.value,
RunState.finished.value,
RunState.crashed.value,
# RunState.crashed.value,
]
and run["name"] not in finished
):
finished.add(run["name"])
summary_metrics = json.loads(run["summaryMetrics"])
obs_in = ObservationInParam(
input=json.loads(run["config"])["x"]["value"],
# TODO: try out other stats like required count
output=summary_metrics["environment/stats/event"],
cost=summary_metrics["performance/uptime"],
)
Expand Down
2 changes: 1 addition & 1 deletion pokemonred_puffer/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ def train(
Vectorization, typer.Option(help="Vectorization method")
] = "multiprocessing",
):
config.vectorization = vectorization
config = load_from_config(config, debug)
config.vectorization = vectorization
config, env_creator = setup(
config=config,
debug=debug,
Expand Down

0 comments on commit d803cc4

Please sign in to comment.