-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Some more details from a ML perspective #86
Comments
The training process is very similar to GPT's next token prediction. Assuming you have 10 reviews belonging to the same cards, the optimizer will train FSRS in the 1st review and treat 2nd review as the target. Then 1-2 reviews are used as the feature and the 3rd review is the target, and so on. |
I am still not 100% sure, maybe I can give an example.
Let us say we simplify the rating from 2,3,4 to 1 and from 1 (again) to 0. time series: [0 0 1 1 1 0] Then the RNN could predict 0.8 as the next token. However, how do you know the number of days this 0.8 corresponds to? Or are you converting delta_t to absolute days? Then let the RNN predict t+k tokens. Each k corresponds to a single day. Then we know the number of days for rescheduling? |
The real time series is [(0, 0), (2, 1), (4, 0)] because the short-term reviews are removed in current model. Lines 1051 to 1057 in 51c6021
The RNN doesn't predict the probability of recall directly. It outputs the stability, and the last delta_t will be used to calculate the probability. For example, [(0, 0), (2, 1)] are the inputs of RNN, and then RNN will output the stability, e.g. 5. The last delta_t 4 and the predicted stability 5 are used to calculate the probability in the forgetting_curve function. |
Thank you, this makes it much clearer. Have you also tried directly modelling the problem without relying on this curve? |
The DASH-series models can predict the probability directly. Lines 1020 to 1029 in 51c6021
|
Without the curve, the general model like RNN, LSTM and GRU may make some weird predictions. For example, the forgetting curve generated from them would not decay over time. |
Thank you for the information. I think a lot of feature engineering has to be done to get good results with direct modelling. For example, grouping similar users or cards. And then having only a single model. I will also do some experiments. However, it would be easier for evaluating the performance by splitting the scripts some more. For datasets such as COCO, you have a single training and test dataset. You could just create a script that takes as input a single prediction csv file and outputs the metrics (like at Kaggle). While it is good to have a cross validation split, people might use different splits for their training. |
Our benchmark doesn't have cross validation split. It only uses time-series-split to avoid data leakage. |
Hey, first of all thank you for the dataset. I was wondering if you could provide some more details for people who want to train their own ML algorithms but might not be familiar with the internals of Anki.
Let me see if I understand the dataset correctly:
What is the target variable? And how are you handling the time series for RNNs?
The text was updated successfully, but these errors were encountered: