Skip to content
/ DGEKT Public

DGEKT: A Dual Graph Ensemble Learning Method for Knowlegde Tracing

Notifications You must be signed in to change notification settings

Yumo216/DGEKT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

DGEKT

The implementation of the paper DGEKT: A Dual Graph Ensemble Learning Method for Knowlegde Tracing.

Abstract

Knowledge tracing, which aims to trace students’ evolving knowledge states based on their exercise-answering sequences, plays a critical role in supporting intelligent educational services. Recently, some graph-based models have been developed to incorporate the relationships between exercises to improve knowledge tracing. Despite the encouraging progress, only a single type of relationship information is generally explored. This paper presents a novel dual graph ensemble learning method for Knowledge Tracing (DGEKT), which establishes a dual graph structure of students’ learning interac tions to capture the heterogeneous exercise-concept associations and interaction transitions by hypergraph and directed graph modeling. Moreover, online knowledge distillation is introduced to form an ensemble teacher model from the dual graph models. In this way, besides the reference to students’ responses to a single exercise at the next step, the ensemble teacher model provides its predictions on all exercises as extra supervision for better modeling ability. In the experiments, we compare DGEKT against eight knowledge tracing baselines on three benchmark datasets, and the results demonstrate that DGEKT achieves state-of-the-art performance.

Overall Architecture

图片

Dataset

We evaluate our method on three benchmark datasets for knowledge tracing, i.e., ASSIST09, ASSIST17, and EdNet. In addition to the ASSIST17 dataset provided in the code, the ASSIST09 and EdNet datasets which mentioned in the paper are in the Google Drive, which you can download with this link.

Try using your own dataset!

You can also use your own data set, but note that besides the four row data set, you also need to build the incidence matrix of question and concept of the dataset and put it in the /Dataset/H folder.

Models

  • /KnowledgeTracing/model/Model.py:end-to-end prediction framework;
  • /KnowledgeTracing/hgnn_models:the module of Concept Association HyperGraph(CAHG);
  • KnowledgeTracing/DirectedGCN:the module of Directed Transition Graph (DTG);
  • /KnowledgeTracing/data/:reading and processing datasets;
  • /KnowledgeTracing/evaluation/eval.py:Calculate losses and performance;

Setup

To run this code you need the following:

a machine with GPUs
python3
numpy, pandas, scipy, scikit-learn and torch packages:
pip3 install torch==1.7.0 numpy==1.21.2 pandas==1.4.1 scipy==1.7.3 scikit-learn==1.0.2 tqdm==4.26.3 

Hyperparameter Settings

/KnowledgeTracing/Constant/Constants.py is specially used to set super parameters, all parameters of the whole model can be set in this file.

MAX_STEP = 50 BATCH_SIZE = 128 LR = 0.001 EPOCH = 20 EMB = 256 HIDDEN = 128 kd_loss = 5.00E-06

Save Log

If you need to save the log, create a log folder under the evaluation folder. There are trained models in the model folder, which can be directly run KTtest() in run.py . Of course, you can also train a new models, just run KTtrain() in run.py

Contact us

If you have any questions, please contact iext48@163.com.

About

DGEKT: A Dual Graph Ensemble Learning Method for Knowlegde Tracing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages