glenn-jocher commited on
Commit
234e8ae
1 Parent(s): de534e9

Fix for `plot_evolve()` string argument (#4639)

Browse files
Files changed (1) hide show
  1. utils/plots.py +2 -1
utils/plots.py CHANGED
@@ -358,8 +358,9 @@ def profile_idetection(start=0, stop=0, labels=(), save_dir=''):
358
  plt.savefig(Path(save_dir) / 'idetection_profile.png', dpi=200)
359
 
360
 
361
- def plot_evolve(evolve_csv=Path('path/to/evolve.csv')): # from utils.plots import *; plot_evolve()
362
  # Plot evolve.csv hyp evolution results
 
363
  data = pd.read_csv(evolve_csv)
364
  keys = [x.strip() for x in data.columns]
365
  x = data.values
 
358
  plt.savefig(Path(save_dir) / 'idetection_profile.png', dpi=200)
359
 
360
 
361
+ def plot_evolve(evolve_csv='path/to/evolve.csv'): # from utils.plots import *; plot_evolve()
362
  # Plot evolve.csv hyp evolution results
363
+ evolve_csv = Path(evolve_csv)
364
  data = pd.read_csv(evolve_csv)
365
  keys = [x.strip() for x in data.columns]
366
  x = data.values