Skip to content

AttributeError: can't set attribute #4

@astonisingHSR

Description

@astonisingHSR

I am trying to run the "examples/train_jsrl_curriculum.py", but there is error occured at the file "jsrl/jsrl.py"
`
eval_callback = JSRLEvalCallback(

self.env,
callback_after_eval=JSRLAfterEvalCallback(
self.policy,
self.logger,
verbose=self.verbose,
),
eval_freq=self.policy.eval_freq,
n_eval_episodes=self.policy.n_eval_episodes,
verbose=self.verbose,
)and class JSRLAfterEvalCallback(BaseCallback):
def init(self, policy, logger, *args, **kwargs):
super().init(*args, **kwargs)
self.policy = policy
self.logger = logger
`
The error is "AttributeError: can't set attribute", it seems that the property "logger" can't be directly set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions