Open YuanlinChu opened 2 years ago
Did you solve this issue? I clone this code to my local computer. But I still suffer from this issue. I tried to solve this issue but I failed. :(
I got the same error
A late response here. Change the super init function of class EvalParamCallback in sb3_on_policy_train.py from:
super(EvalParamCallback, self).__init__(eval_env, callback_on_new_best, n_eval_episodes, eval_freq, log_path,
best_model_save_path, deterministic, render, verbose, warn)
to
super(EvalParamCallback, self).__init__(eval_env, callback_on_new_best,
n_eval_episodes = n_eval_episodes,
eval_freq = eval_freq,
log_path = log_path,
best_model_save_path = best_model_save_path,
deterministic = deterministic,
render = render,
verbose = verbose,
warn = warn)
The problem is due to the class EvalParamCallback and its parent class EvalCallback.
EvalCallback init() can pass an additional callback_after_eval function but not in EvalParamCallback. So it's getting n_eval_episodes as the callback function.
Hello, when I tried to train an agent with this command line
the following error occurred :
I hope I can get your help,Thanks.