JarrettYe commited on
Commit
9e932a5
1 Parent(s): 233f10f

fix/wrong key

Browse files
Files changed (1) hide show
  1. plot.py +1 -1
plot.py CHANGED
@@ -92,7 +92,7 @@ def make_plot(proj_dir, type_sequence, time_sequence, w, difficulty_distribution
92
  df2 = df2.append(
93
  pd.DataFrame({'retention': retention, 'expected time': time, 'd': d, 'r': optimal_retention}))
94
 
95
- fig = px.line(df2, x="retention", y="expected time (second)", color='d', log_y=True)
96
 
97
  # print(f"\n-----suggested retention: {np.inner(difficulty_distribution_padding, optimal_retention_list):.2f}-----")
98
  suggested_retention_markdown = f"""# Suggested Retention: `{np.inner(difficulty_distribution_padding, optimal_retention_list):.2f}`"""
92
  df2 = df2.append(
93
  pd.DataFrame({'retention': retention, 'expected time': time, 'd': d, 'r': optimal_retention}))
94
 
95
+ fig = px.line(df2, x="retention", y="expected time", color='d', log_y=True)
96
 
97
  # print(f"\n-----suggested retention: {np.inner(difficulty_distribution_padding, optimal_retention_list):.2f}-----")
98
  suggested_retention_markdown = f"""# Suggested Retention: `{np.inner(difficulty_distribution_padding, optimal_retention_list):.2f}`"""