Skip to content

Commit

Permalink
remove wrong import in simulator (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
L-M-Sherlock authored Sep 24, 2022
1 parent e0f77ed commit 1881ba2
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions fsrs4anki_simulator.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"id": "jmXx-hS9ZMVj"
},
"source": [
"# FSRS4Anki v1.5.0 Simulator"
"# FSRS4Anki v1.5.1 Simulator"
]
},
{
Expand All @@ -15,7 +15,7 @@
"id": "w7KqoHAJr1dM"
},
"source": [
"[![](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/open-spaced-repetition/fsrs4anki/blob/v1.5.0/fsrs4anki_simulator.ipynb)"
"[![](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/open-spaced-repetition/fsrs4anki/blob/v1.5.1/fsrs4anki_simulator.ipynb)"
]
},
{
Expand All @@ -39,6 +39,8 @@
"easyBonus = 1.3\n",
"hardInterval = 1.2\n",
"\n",
"filename = \"ALL__Learning.apkg\"\n",
"\n",
"new_cards_limits = 20\n",
"review_limits = 1000\n",
"\n",
Expand All @@ -65,12 +67,13 @@
"import os\n",
"import time\n",
"import zipfile\n",
"import sqlite3\n",
"import pandas as pd\n",
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"from pathlib import Path\n",
"from tqdm import tqdm\n",
"from torch import nn\n"
"from torch import nn"
]
},
{
Expand All @@ -87,9 +90,6 @@
}
],
"source": [
"import sqlite3\n",
"from importlib.metadata import distribution\n",
"filename = \"ALL__Learning.apkg\"\n",
"# Extract the collection file or deck file to get the .anki21 database.\n",
"with zipfile.ZipFile(f'./{filename}', 'r') as zip_ref:\n",
" zip_ref.extractall('./')\n",
Expand Down Expand Up @@ -280,7 +280,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"100%|██████████| 200/200 [00:16<00:00, 11.82it/s]\n"
"100%|██████████| 200/200 [00:20<00:00, 9.70it/s]\n"
]
},
{
Expand Down Expand Up @@ -333,9 +333,6 @@
}
],
"source": [
"from hashlib import new\n",
"\n",
"\n",
"new_card_per_day = np.array([0.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 1881ba2

Please sign in to comment.