Browse Source

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

modifyDataloader
Glenn Jocher GitHub 3 years ago
parent
commit
234e8ae6fa
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      utils/plots.py

+ 2
- 1
utils/plots.py View File

plt.savefig(Path(save_dir) / 'idetection_profile.png', dpi=200) plt.savefig(Path(save_dir) / 'idetection_profile.png', dpi=200)




def plot_evolve(evolve_csv=Path('path/to/evolve.csv')): # from utils.plots import *; plot_evolve()
def plot_evolve(evolve_csv='path/to/evolve.csv'): # from utils.plots import *; plot_evolve()
# Plot evolve.csv hyp evolution results # Plot evolve.csv hyp evolution results
evolve_csv = Path(evolve_csv)
data = pd.read_csv(evolve_csv) data = pd.read_csv(evolve_csv)
keys = [x.strip() for x in data.columns] keys = [x.strip() for x in data.columns]
x = data.values x = data.values

Loading…
Cancel
Save