(x)
| 3 | import numpy as np |
| 4 | |
| 5 | def smooth(x): |
| 6 | # last 100 |
| 7 | n = len(x) |
| 8 | y = np.zeros(n) |
| 9 | for i in range(n): |
| 10 | start = max(0, i - 99) |
| 11 | y[i] = float(x[start:(i+1)].sum()) / (i - start + 1) |
| 12 | return y |
| 13 | |
| 14 | j = np.load('es_mujoco_results.npz') |
| 15 |
no outgoing calls
no test coverage detected