Skip to content
Snippets Groups Projects
Commit daf36302 authored by Dennis Noll's avatar Dennis Noll
Browse files

[plotting] pd fixed bug when index is not sorted

parent 04bea6db
No related branches found
No related tags found
No related merge requests found
......@@ -117,6 +117,7 @@ def figure_history(history_csv_path):
def plot_histories(history_csv_path, path, cut=None, roll=1):
df = pd.read_csv(history_csv_path)
df = df.set_index("epoch")
df = df.sort_index()
df = df.truncate(after=cut)
for col in df.columns:
if col.startswith("val_"):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment