neural_collaborative_filtering
neural_collaborative_filtering copied to clipboard
when run your code , it occurs some problems.
Connected to pydev debugger (build 182.4323.49)
Using Theano backend.
MLP arguments: Namespace(batch_size=256, dataset='ml-1m', epochs=100, layers='[64,32,16,8]', learner='adam', lr=0.001, num_neg=4, out=1, path='Data/', reg_layers='[0,0,0,0]', verbose=1)
Load data done [46.5 s]. #user=6040, #item=3706, #train=994169, #test=6040
Traceback (most recent call last):
File "/home/zxj/software/pycharm-2018.2.3/helpers/pydev/pydevd.py", line 1664, in
The are some problems, when i run MLP.py , keras and Theano version is right . I hope you can hope me to solved this problems
I solved it . modify int(layers[0]/2) That would be ok !
Hello,where did you modify?
MLP文件中的Embedding(output_dim=int(layers[0]/2)) ,两个Embedding都要修改。
thank you very much,but i meet the error: ERROR (theano.gof.opt): Optimization failure due to: constant_folding ERROR (theano.gof.opt): node: DimShuffle{x,x}(TensorConstant{0.5}) ERROR (theano.gof.opt): TRACEBACK: ERROR (theano.gof.opt): Traceback (most recent call last): File "C:\Users\Administrator\Anaconda3\lib\site-packages\theano\gof\opt.py", line 1772, in process_node replacements = lopt.transform(node) File "C:\Users\Administrator\Anaconda3\lib\site-packages\theano\tensor\opt.py", line 5825, in constant_folding no_recycling=[]) File "C:\Users\Administrator\Anaconda3\lib\site-packages\theano\gof\op.py", line 970, in make_thunk no_recycling) File "C:\Users\Administrator\Anaconda3\lib\site-packages\theano\gof\op.py", line 879, in make_c_thunk output_storage=node_output_storage) File "C:\Users\Administrator\Anaconda3\lib\site-packages\theano\gof\cc.py", line 1200, in make_thunk keep_lock=keep_lock) File "C:\Users\Administrator\Anaconda3\lib\site-packages\theano\gof\cc.py", line 1143, in compile keep_lock=keep_lock) File "C:\Users\Administrator\Anaconda3\lib\site-packages\theano\gof\cc.py", line 1587, in cthunk_factory key = self.cmodule_key() File "C:\Users\Administrator\Anaconda3\lib\site-packages\theano\gof\cc.py", line 1285, in cmodule_key c_compiler=self.c_compiler(), File "C:\Users\Administrator\Anaconda3\lib\site-packages\theano\gof\cc.py", line 1364, in cmodule_key_ numpy.core.multiarray._get_ndarray_c_version()) AttributeError: module 'numpy.core.multiarray' has no attribute '_get_ndarray_c_version' I hope you can hope me to solved this problems
Please use python2 to run the code.(The gap between python3 and python2)