tswsxk / XKT

Multiple Knowledge Tracing models implemented by mxnet
MIT License
16 stars 10 forks source link

raise NotImplementedError #1

Closed xueruafternoon closed 3 years ago

xueruafternoon commented 3 years ago

thanks for your code and paper! I have tried to implement this project and got some trouble

the error message shows:

  File "XKT/DKVMN/DKVMN.py", line 206, in model_init
    net = mod.load(net, load_epoch, cfg.ctx)
  File "/Users/anaconda3/lib/python3.7/site-packages/longling/ML/MxnetHelper/glue/module.py", line 43, in load
    filename = self.epoch_params_filepath(epoch)
  File "/Users/anaconda3/lib/python3.7/site-packages/longling/ML/MxnetHelper/glue/module.py", line 50, in epoch_params_filepath
    raise NotImplementedError
NotImplementedError

and the related code in file" /anaconda3/lib/python3.7/site-packages/longling/ML/MxnetHelper/glue/module.py " is:

        filename = self.epoch_params_filepath(epoch)
        return load_net(
            filename, net, ctx, allow_missing=allow_missing,
            ignore_extra=ignore_extra
        )

    def epoch_params_filepath(self, epoch):
        raise NotImplementedError

    def net_initialize(self, *args, **kwargs):
        """初始化网络参数"""
        raise NotImplementedError

i am confused about this method, so could you please offer some information, thank you a lot!

tswsxk commented 3 years ago

The problem has been fixed, see the updated codes