Skip to content

Commit b267cbc

Browse files
authored
Fix/easy disable sm 2 in simulator (#603)
1 parent 1e76e72 commit b267cbc

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

fsrs4anki_simulator.ipynb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"id": "jmXx-hS9ZMVj"
88
},
99
"source": [
10-
"# FSRS4Anki v4.11.0 Simulator"
10+
"# FSRS4Anki v4.12.2 Simulator"
1111
]
1212
},
1313
{
@@ -17,7 +17,7 @@
1717
"id": "lurCmW0Jqz3s"
1818
},
1919
"source": [
20-
"[![open in colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/open-spaced-repetition/fsrs4anki/blob/v4.11.0/fsrs4anki_simulator.ipynb)\n",
20+
"[![open in colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/open-spaced-repetition/fsrs4anki/blob/v4.12.2/fsrs4anki_simulator.ipynb)\n",
2121
"\n",
2222
"↑ Click the above button to open the simulator on Google Colab.\n",
2323
"\n",
@@ -66,7 +66,9 @@
6666
"\n",
6767
"# Red: 1, Orange: 2, Green: 3, Blue: 4, Pink: 5, Turquoise: 6, Purple: 7\n",
6868
"# Set it to [1, 2] if you don't want the optimizer to use the review logs from cards with red or orange flag.\n",
69-
"filter_out_flags = []"
69+
"filter_out_flags = []\n",
70+
"\n",
71+
"schedulers = [\"anki\", \"fsrs\"] # You can disable anki by removing it from this list"
7072
]
7173
},
7274
{
@@ -91,7 +93,7 @@
9193
}
9294
],
9395
"source": [
94-
"%pip install -q fsrs_optimizer==4.20.4\n",
96+
"%pip install -q fsrs_optimizer==4.22.0\n",
9597
"import pandas as pd\n",
9698
"import numpy as np\n",
9799
"import random\n",
@@ -420,7 +422,7 @@
420422
" return None\n",
421423
"\n",
422424
"\n",
423-
"for scheduler_name in (\"anki\", \"fsrs\"):\n",
425+
"for scheduler_name in schedulers:\n",
424426
" new_card_per_day = np.array([0] * learn_days)\n",
425427
" new_card_per_day_average_per_period = np.array([0.0] * learn_days)\n",
426428
" review_card_per_day = np.array([0.0] * learn_days)\n",

0 commit comments

Comments
 (0)