Skip to content

jdxyw/deepKT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deepKT

Knowledge tracing(KT) is the crucial task in the filed of online education. Before the rise of the deep learning, IRT, BKT and other traditional models are used to predict users/students ability and proficiency.

With the development of the deep learning, the DL also shows its power in this field. KT is a well-defined task. In short, it would give the probability for the correctness of next question which student need solve.

This repo would implement some Deep Knowledge Tracing models with PyTorch.

Data

Under the folder data, this repo provides ASSISTments2015 dataset. This dataset has been processed, not the original official format. This dataset is the simplest dataset that only contains the correct tag of an attempt. If your dataset is more complex with other information, you could define your PyTorch Dataset.

The data format.

45,45,45,47,47,47,28,28,28,28,28,17,17,17,28,28,28	1,1,1,1,1,1,1,1,0,1,0,1,1,1,1,1,1
19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19	0,0,0,0,0,0,0,1,0,0,1,1,0,1,1,1
49,49,49,49,49,49,49,92,92,92,92,92,26,26,26,26,26,26	0,1,0,0,1,1,1,0,0,1,1,1,1,0,0,1,1,1

Each line contains two fields separated by \t. The first field is the question id sequence answered by the user. The second filed is the corresponding answer sequence. 1 means correct, 0 means wrong.

Project structure

├── data
│   ├── assist2015_test.csv
│   └── assist2015_train.csv
├── deepkt
│   ├── data
│   │   ├── __init__.py
│   │   └── dataset.py
│   ├── loss
│   ├── model
│   └── utils
│       ├── __init__.py
│       └── utils.py
└── examples
Folder Usage
data example data
deepkt/data define PyTorch Dataset
deepkt/loss define KT loss
deepkt/model define KT model
deepkt/utils define some utils
examples each model has its own example

Experiments

Data: `ASSISTments2015`, train 80%, test 20%.
Epoch: 5
Learning Rate: 0.001
Batch Size: 64
Sequence Type: LSTM, one layer
Dim: 100 for all embedding layer
Hidden Dim: 100
Optim: Adam
Scheduler: StepLR, step size 1, gamma 0.9
Model Test AUC Other Config
DKT 0.731
DKT Plus 0.7317 gamma 0.05 reg1 0 reg2 0
Deep IRT 0.7309 KP dim 64
SAKT 0.718 embed dim 200, 5 heads

References

Model Paper
Deep Knowledge Tracing Deep Knowledge Tracing
Deep Knowledge Tracing Plus Addressing Two Problems in Deep Knowledge Tracing via Prediction-Consistent Regularization
Deep IRT Deep-IRT: Make Deep Learning Based Knowledge Tracing Explainable Using Item Response Theory
Self-Attentive Knowledge Tracing A Self-Attentive model for Knowledge Tracing

About

A repo for knowledge tracing implementation by PyTorch

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages