Skip to content

Commit

Permalink
Fix/easy disable sm 2 in simulator (#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
L-M-Sherlock authored Jan 29, 2024
1 parent 1e76e72 commit b267cbc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions fsrs4anki_simulator.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"id": "jmXx-hS9ZMVj"
},
"source": [
"# FSRS4Anki v4.11.0 Simulator"
"# FSRS4Anki v4.12.2 Simulator"
]
},
{
Expand All @@ -17,7 +17,7 @@
"id": "lurCmW0Jqz3s"
},
"source": [
"[![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",
"[![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",
"\n",
"↑ Click the above button to open the simulator on Google Colab.\n",
"\n",
Expand Down Expand Up @@ -66,7 +66,9 @@
"\n",
"# Red: 1, Orange: 2, Green: 3, Blue: 4, Pink: 5, Turquoise: 6, Purple: 7\n",
"# 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",
"filter_out_flags = []"
"filter_out_flags = []\n",
"\n",
"schedulers = [\"anki\", \"fsrs\"] # You can disable anki by removing it from this list"
]
},
{
Expand All @@ -91,7 +93,7 @@
}
],
"source": [
"%pip install -q fsrs_optimizer==4.20.4\n",
"%pip install -q fsrs_optimizer==4.22.0\n",
"import pandas as pd\n",
"import numpy as np\n",
"import random\n",
Expand Down Expand Up @@ -420,7 +422,7 @@
" return None\n",
"\n",
"\n",
"for scheduler_name in (\"anki\", \"fsrs\"):\n",
"for scheduler_name in schedulers:\n",
" new_card_per_day = np.array([0] * learn_days)\n",
" new_card_per_day_average_per_period = np.array([0.0] * learn_days)\n",
" review_card_per_day = np.array([0.0] * learn_days)\n",
Expand Down

0 comments on commit b267cbc

Please sign in to comment.