AI4Finance-Foundation / AI4Finance-Foundation/ElegantRL

some confusion about Evaluator

未關閉
#462 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
4.4k
分支
978
PR 合併指標
30 天內沒有已合併 PR

描述

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_**_

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。