We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
deltas = [r + gamma * (1 - d) * nv - v for r, d, nv, v in zip(rewards, dones, next_values, values)]
TypeError: unsupported operand type(s) for +: 'NoneType' and 'float'
The text was updated successfully, but these errors were encountered:
rewards = [0 if reward is None else reward for reward in rewards]
Add this above deltas = [r + ....
Sorry, something went wrong.
deltas = [r + gamma * (1 - d) * nv - v for r, d, nv, v in zip(rewards, dones, next_values, values)] TypeError: unsupported operand type(s) for +: 'NoneType' and 'float'
Where you able to solve this?
rewards = [0 if reward is None else reward for reward in rewards] Add this above deltas = [r + ....
Mind elaborating a bit more? It didnt solved the issue at my end, any help is highly appreciated. Thanks!
No branches or pull requests
deltas = [r + gamma * (1 - d) * nv - v for r, d, nv, v in zip(rewards, dones, next_values, values)]
TypeError: unsupported operand type(s) for +: 'NoneType' and 'float'
The text was updated successfully, but these errors were encountered: