Fix for plot_evolve() string argument (#4639)

This commit is contained in:
Glenn Jocher authored and GitHub committed 2021-09-01 15:00:13 +02:00
1 parent de534e9221
commit 234e8ae6fa
1 file changed
+2 -1
+2 -1
View File
@@ -358,8 +358,9 @@ def profile_idetection(start=0, stop=0, labels=(), save_dir=''):
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
evolve_csv = Path(evolve_csv)
data = pd.read_csv(evolve_csv)
keys = [x.strip() for x in data.columns]
x = data.values