Deep-Knowledge-Tracing icon indicating copy to clipboard operation
Deep-Knowledge-Tracing copied to clipboard

I get some question, why?

Open sunhao97 opened this issue 4 years ago • 6 comments

evaluate() got an unexpected keyword argument 'x' , l don't know how to solve it.

sunhao97 avatar Nov 11 '20 00:11 sunhao97

The evaluate() from keras is not the same as the one used in this model. The evaluate() function implemented in this model, does not accept the argument "x". Check this.

You can modify this class method or you can follow the approach I've used (TF Dataset). Check this.

lccasagrande avatar Nov 11 '20 17:11 lccasagrande

ok, I have solved the problem in your way. Thank you for your help.

sunhao97 avatar Nov 12 '20 06:11 sunhao97

Hello! Could you please elaborate what changes are needed to get rid of this error? I tried to run the .ipynb and run_dkt.py from the examples/, but got the same message about evaluate() method. Since the data is already passed as TF Dataset and the evaluate method of the class is supposed to be used, I am not sure what is the problem. Thank you!

edloginova avatar Dec 06 '20 11:12 edloginova

l change the evaluate() method's name in this model , you can change this name which you like ,and you can also change the version which can support this model.

sunhao97 avatar Dec 06 '20 11:12 sunhao97

The main question is that the evaluate() method's name in this model is as same as which in the keras, because you did not set up the same version as the author.

sunhao97 avatar Dec 06 '20 11:12 sunhao97

I changed the version to tensorflow 2.0. This solved the issue.

thewhiteflower110 avatar Feb 06 '21 06:02 thewhiteflower110