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

some confusion about Evaluator #462

Open
guest-oo opened this issue Dec 9, 2024 · 0 comments
Open

some confusion about Evaluator #462

guest-oo opened this issue Dec 9, 2024 · 0 comments

Comments

@guest-oo
Copy link

guest-oo commented Dec 9, 2024

May I ask why the author is in the class Evaluator:

def init(self, cwd: str, env, args: Config, if_tensorboard: bool = False):

self.cwd = cwd # current working directory to save model

self.env = env # the env for Evaluator, eval_env = env in default

self.agent_id = args.gpu_id

self.total_step = 0 # the total training step

self.start_time = time.time() # used_time = time.time() - self.start_time

self.eval_times = args.eval_times # number of times that get episodic cumulative return

self.eval_per_step = args.eval_per_step # evaluate the agent per training steps

self.eval_step_counter = -self.eval_per_step # self.total_step > self.eval_step_counter + self.eval_per_step
Here self.eval_step_counter= -self.eval_per_step is selected and self.eval_step_counter=0 in hellow dqn

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

No branches or pull requests

1 participant