mirror of
https://github.com/vale981/ray
synced 2025-04-23 06:25:52 -04:00
fix indentation for ES (#1484)
This commit is contained in:
parent
7187f9fe56
commit
7550b628bf
1 changed files with 7 additions and 7 deletions
|
@ -124,13 +124,13 @@ class Worker(object):
|
|||
[np.sign(rewards_pos).sum(), np.sign(rewards_neg).sum()])
|
||||
lengths.append([lengths_pos, lengths_neg])
|
||||
|
||||
return Result(
|
||||
noise_indices=noise_indices,
|
||||
noisy_returns=returns,
|
||||
sign_noisy_returns=sign_returns,
|
||||
noisy_lengths=lengths,
|
||||
eval_returns=eval_returns,
|
||||
eval_lengths=eval_lengths)
|
||||
return Result(
|
||||
noise_indices=noise_indices,
|
||||
noisy_returns=returns,
|
||||
sign_noisy_returns=sign_returns,
|
||||
noisy_lengths=lengths,
|
||||
eval_returns=eval_returns,
|
||||
eval_lengths=eval_lengths)
|
||||
|
||||
|
||||
class ESAgent(Agent):
|
||||
|
|
Loading…
Add table
Reference in a new issue