chrisjay commited on
Commit
d0e14c9
2 Parent(s): 9574493 1ff0f9e

merge utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -2
utils.py CHANGED
@@ -48,8 +48,7 @@ def parse_rewards(accuracy):
48
  default_std = -1000
49
  default_reward=-1000
50
  if accuracy != None:
51
- if type(accuracy)!=str: # Always convert to string
52
- accuracy = str(accuracy)
53
  parsed = accuracy.split(' +/- ')
54
  if len(parsed)>1:
55
  mean_reward = float(parsed[0])
 
48
  default_std = -1000
49
  default_reward=-1000
50
  if accuracy != None:
51
+ accuracy = str(accuracy)
 
52
  parsed = accuracy.split(' +/- ')
53
  if len(parsed)>1:
54
  mean_reward = float(parsed[0])