GithubHelp home page GithubHelp logo

scd's Introduction

SCD

Self-supervised Graph Learning for Long-tailed Cognitive Diagnosis

Environment Settings

python=3.6
pytorch=1.9
dgl=0.7.2 (Other versions are not supported)

scd's People

Contributors

zeng-zhen avatar

Stargazers

Weibo Gao avatar Outlier avatar  avatar wangshanshan avatar

scd's Issues

Can you provide data preprocessing code?

Hey, Author! I am interested in your work on long-tail in cognitive diagnosis. However, I'm having trouble running this experimental data in the context of other data distributions. Can you provide some data preprocessing code? My email is [email protected]. Thank you!

Experiment can not be reproduced

The code and datasets are dramatically messy with poor readability and bad format, and this model can not be easily applied on other datasets. Moreover, even on the offered datasets, the code is not executed successfully (without any modification, just as what you provided).

Information:

Traceback (most recent call last):
  File "/tmp/SCD/main.py", line 145, in <module>
    train(args, construct_local_map(args))
  File "/tmp/SCD/main.py", line 65, in train
    predict(args, local_map, net, epoch)
  File "/tmp/SCD/main.py", line 84, in predict
    output = net.forward_test(input_stu_ids, input_exer_ids, input_knowledge_embs, input_nodes, output_nodes, blocks)
  File "/tmp/SCD/model.py", line 100, in forward_test
    node_emb2 = self.gnet2(blocks[1], node_emb1)
  File "/root/miniconda3/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
    return forward_call(*input, **kwargs)
  File "/tmp/SCD/gnn.py", line 55, in forward
    dstdata = self.mods[etype](rel_graph, (src_inputs[stype], dst_inputs[dtype]), *mod_args.get(etype, ()), **mod_kwargs.get(etype, {}))
  File "/root/miniconda3/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
    return forward_call(*input, **kwargs)
  File "/root/miniconda3/lib/python3.8/site-packages/dgl/nn/pytorch/conv/gatconv.py", line 295, in forward
    graph.dstdata.update({'er': er})
  File "/root/miniconda3/lib/python3.8/_collections_abc.py", line 832, in update
    self[key] = other[key]
  File "/root/miniconda3/lib/python3.8/site-packages/dgl/view.py", line 81, in __setitem__
    self._graph._set_n_repr(self._ntid, self._nodes, {key : val})
  File "/root/miniconda3/lib/python3.8/site-packages/dgl/heterograph.py", line 4000, in _set_n_repr
    self._node_frames[ntid].update(data)
  File "/root/miniconda3/lib/python3.8/_collections_abc.py", line 832, in update
    self[key] = other[key]
  File "/root/miniconda3/lib/python3.8/site-packages/dgl/frame.py", line 405, in __setitem__
    self.update_column(name, data)
  File "/root/miniconda3/lib/python3.8/site-packages/dgl/frame.py", line 478, in update_column
    raise DGLError('Expected data to have %d rows, got %d.' %
dgl._ffi.base.DGLError: Expected data to have 225 rows, got 223.

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.