lvwerra HF Staff commited on
Commit
e1342f7
·
1 Parent(s): 0a57fd4

Update Space (evaluate main: 8fd64d2f)

Browse files
Files changed (2) hide show
  1. requirements.txt +1 -1
  2. rl_reliability.py +1 -1
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- git+https://github.com/huggingface/evaluate@eae4d42cc150c3a61b39c6aa3860df87cdbdf77d
2
  git+https://github.com/google-research/rl-reliability-metrics
3
  scipy
4
  tensorflow
 
1
+ git+https://github.com/huggingface/evaluate@8fd64d2f5193b7e1da945abf04da26c1ff3d8a54
2
  git+https://github.com/google-research/rl-reliability-metrics
3
  scipy
4
  tensorflow
rl_reliability.py CHANGED
@@ -73,7 +73,7 @@ Examples:
73
  >>> import numpy as np
74
  >>> rl_reliability = evaluate.load("rl_reliability", "online")
75
  >>> results = rl_reliability.compute(
76
- ... timesteps=[np.linspace(0, 2000000, 1000)],
77
  ... rewards=[np.linspace(0, 100, 1000)]
78
  ... )
79
  >>> print(results["LowerCVaROnRaw"].round(4))
 
73
  >>> import numpy as np
74
  >>> rl_reliability = evaluate.load("rl_reliability", "online")
75
  >>> results = rl_reliability.compute(
76
+ ... timesteps=[np.linspace(0, 2000000, 1000, dtype=np.int64())],
77
  ... rewards=[np.linspace(0, 100, 1000)]
78
  ... )
79
  >>> print(results["LowerCVaROnRaw"].round(4))