bd2ab5ff212c46435cdebafc02f4801d65f3df33,slm_lab/agent/__init__.py,Body,calc_df_row,#Body#Any#,127
Before Change
"opt_step": self.env.clock.get("opt_step"),
"frame": frame,
"fps": fps,
"total_reward": np.nanmean(env.total_reward), // guard for vec env
"total_reward_ma": np.nan, // update outside
"loss": self.loss,
"lr": self.get_mean_lr(),
After Change
wall_t = env.clock.get_elapsed_wall_t()
fps = 0 if wall_t == 0 else frame / wall_t
with np.errstate(all="ignore"):
total_reward = np.nanmean(env.total_reward) // guard for vec env
// update debugging variables
if net_util.to_check_train_step():
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: kengz/SLM-Lab
Commit Name: bd2ab5ff212c46435cdebafc02f4801d65f3df33
Time: 2019-07-27
Author: kengzwl@gmail.com
File Name: slm_lab/agent/__init__.py
Class Name: Body
Method Name: calc_df_row
Project Name: mapbox/robosat
Commit Name: e3310bed0efc1bf3eba564a20ed0971876f38fd1
Time: 2019-05-27
Author: daniel@trvx.org
File Name: robosat/metrics.py
Class Name: Metrics
Method Name: get_miou
Project Name: EpistasisLab/tpot
Commit Name: e481cacfdc0f3077fb3025421ffa2738b44957cf
Time: 2020-08-29
Author: jorijnsmit@gmail.com
File Name: tpot/gp_deap.py
Class Name:
Method Name: _wrapped_cross_val_score