Hi, it seems I introduced a bug in PCN when extending the logger to also log the training parameters. I will open a pull request in a minute with a quick fix but I wanted to have this issue as a reference.
The problem starts at the following line that initialises a parameter with type np.ndarray to a float.
max_return: np.ndarray = 100.0
When we want to log this parameter, it is assumed that max_return is indeed an array and that tolist() is available. However, since it is initialised to a float, this raises an error at the following line:
Hi, it seems I introduced a bug in PCN when extending the logger to also log the training parameters. I will open a pull request in a minute with a quick fix but I wanted to have this issue as a reference.
The problem starts at the following line that initialises a parameter with type
np.ndarray
to a float.When we want to log this parameter, it is assumed that max_return is indeed an array and that
tolist()
is available. However, since it is initialised to a float, this raises an error at the following line: