Giter VIP home page Giter VIP logo

deepkt's Introduction

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

deepkt's People

Contributors

jdxyw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

deepkt's Issues

An unexpected issue when using my dataset

Hi~thank you for providing such a helpful repository about deepKT. It helps me a lot.

But now I got an unexpected issue. When I use my own dataset to run the SAKT model. I follow your data format to preprocess my question ids(The total account of question ids is more than 20,000). When I run the model, the following error reported:

Traceback (most recent call last):
File "examples/run_sakt.py", line 174, in
run(args)
File "examples/run_sakt.py", line 102, in run
logits, _ = model(qid, qa)
File "./.local/lib/python3.6/site-packages/torch/nn/modules/module.py", line 550, in call
result = self.forward(*input, **kwargs)
File "./deepKT/deepkt/model/sakt.py", line 50, in forward
pos_id = torch.arange(qa.size(1)).unsqueeze(0).to(self.device)
RuntimeError: CUDA error: an illegal memory access was encountered

I try to fix it by search the related issues, the it does not work. Have you got the similar errors before?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.