JarrettYe commited on
Commit
0dddcae
·
verified ·
1 Parent(s): 3fc8b58

update FSRS-Optimizer to 4.26.6

Browse files
Files changed (2) hide show
  1. app.py +5 -1
  2. requirements.txt +1 -1
app.py CHANGED
@@ -84,7 +84,11 @@ def optimizer(
84
  difficulty_distribution = optimizer.difficulty_distribution.to_string().replace(
85
  "\n", "\n\n"
86
  )
87
- plot_output = optimizer.find_optimal_retention()[0]
 
 
 
 
88
  suggested_retention_markdown = (
89
  f"""# Suggested Retention: `{optimizer.optimal_retention:.2f}`"""
90
  )
 
84
  difficulty_distribution = optimizer.difficulty_distribution.to_string().replace(
85
  "\n", "\n\n"
86
  )
87
+ plot_output = optimizer.find_optimal_retention(
88
+ learn_span=365, # days to learn
89
+ max_ivl=36500, # days
90
+ loss_aversion=2.5, # forget cost is multiplied by this factor to simulate loss aversion
91
+ )[0]
92
  suggested_retention_markdown = (
93
  f"""# Suggested Retention: `{optimizer.optimal_retention:.2f}`"""
94
  )
requirements.txt CHANGED
@@ -1 +1 @@
1
- FSRS-Optimizer==4.26.3
 
1
+ FSRS-Optimizer==4.26.6