fix/wrong key
Browse files
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
|
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}`"""
|