{"id":18976849,"url":"https://github.com/yxonic/dtransformer","last_synced_at":"2025-04-19T17:13:38.712Z","repository":{"id":78542991,"uuid":"535328597","full_name":"yxonic/DTransformer","owner":"yxonic","description":"Tracing Knowledge Instead of Patterns: Stable Knowledge Tracing with Diagnostic Transformer (WWW '23)","archived":false,"fork":false,"pushed_at":"2025-03-24T04:07:15.000Z","size":4489,"stargazers_count":35,"open_issues_count":3,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-24T05:22:09.637Z","etag":null,"topics":["dtransformer","knowledge-tracing","pytorch","transformer","www2023"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yxonic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-11T14:47:30.000Z","updated_at":"2025-03-24T04:07:19.000Z","dependencies_parsed_at":"2024-11-08T15:42:43.283Z","dependency_job_id":null,"html_url":"https://github.com/yxonic/DTransformer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yxonic%2FDTransformer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yxonic%2FDTransformer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yxonic%2FDTransformer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yxonic%2FDTransformer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yxonic","download_url":"https://codeload.github.com/yxonic/DTransformer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249228271,"owners_count":21233852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dtransformer","knowledge-tracing","pytorch","transformer","www2023"],"created_at":"2024-11-08T15:26:32.357Z","updated_at":"2025-04-16T10:31:56.914Z","avatar_url":"https://github.com/yxonic.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DTransformer\n\nCode for _Tracing Knowledge Instead of Patterns: Stable Knowledge Tracing with Diagnostic Transformer_ (accepted at WWW '23).\n\nCite this work:\n\n```bibtex\n@inproceedings{yin2023tracing,\n  author = {Yin, Yu and Dai, Le and Huang, Zhenya and Shen, Shuanghong and Wang, Fei and Liu, Qi and Chen, Enhong and Li, Xin},\n  title = {Tracing Knowledge Instead of Patterns: Stable Knowledge Tracing with Diagnostic Transformer},\n  year = {2023},\n  isbn = {9781450394161},\n  publisher = {Association for Computing Machinery},\n  address = {New York, NY, USA},\n  url = {https://doi.org/10.1145/3543507.3583255},\n  doi = {10.1145/3543507.3583255},\n  booktitle = {Proceedings of the ACM Web Conference 2023},\n  pages = {855–864},\n  numpages = {10},\n  keywords = {contrastive learning, knowledge tracing, DTransformer},\n  location = {Austin, TX, USA},\n  series = {WWW '23}\n}\n```\n\n## Installation\n\n```bash\n# clone the project\ngit clone git@github.com:yxonic/DTransformer.git\ncd DTransformer\n\n# within an existing virtual environment (like conda):\npip install -e .\n\n# or, install with [uv](https://docs.astral.sh/uv/)\nuv sync\nsource .venv/bin/activate\nuv pip install -e .\n```\n\n## Usage\n\n### Train\n\nTrain DTransformer with CL loss:\n\n```bash\npython scripts/train.py -m DTransformer -d [assist09,assist17,algebra05,statics] -bs 32 -tbs 32 -p -cl --proj [-o output/DTransformer_assist09] [--device cuda]\n```\n\nFor more options, run:\n\n```bash\npython scripts/train.py -h\n```\n\n### Evaluate\n\nEvaluate DTransformer:\n\n```bash\npython scripts/test.py -m DTransformer -d [assist09,assist17,algebra05,statics] -bs 32 -p -f [output/best_model.pt] [--device cuda]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyxonic%2Fdtransformer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyxonic%2Fdtransformer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyxonic%2Fdtransformer/lists"}