Thank you for your sharing your code. But when I am running code I encounter the below problem: do you have any ideas what is wrong? thank you!!!
packages/theano/tensor/signal/downsample.py:6: UserWarning: downsample module has been moved to the theano.tensor.signal.pool module.
"downsample module has been moved to the theano.tensor.signal.pool module.")
Using Training Data../commonsendata/Training/new_omcs100.txt
Using Word Embeddings with Dimension 200
Training on 1000 examples using lambda=1e-05
Saving models to: ../models/Bilinear_cetrainSize300frac0.01dSize200relSize150acti0.001.1e-05.200.RAND.tanh.txt
Traceback (most recent call last):
File "train.py", line 80, in <module>
tm = theano_word_model(We, words, params.embedsize, rel, params.relsize, Rel_init, params.LC, params.Lw, params.eta, params.margin, params.usepeep, params.activation)
File "/home/kaharjan/kbGit/ACL_CKBC/bilinear_ce/commonsense.py", line 243, in __init__
self.we = theano.shared(We_initial).astype(theano.config.floatX)
AttributeError: 'SharedVariable' object has no attribute 'astype'
/home/kaharjan/python-env/gpu/local/lib/python2.7/site-packages/theano/tensor/signal/downsample.py:6: UserWarning: downsample module has been moved to the theano.tensor.signal.pool module.
"downsample module has been moved to the theano.tensor.signal.pool module.")
Using Training Data../commonsendata/Training/new_omcs100.txt
Using Word Embeddings with Dimension 200
Training on 1000 examples using lambda=1e-05
Saving models to: ../models/Bilinear_cetrainSize300frac0.01dSize200relSize150acti0.001.1e-05.200.MIX.tanh.txt
Traceback (most recent call last):
File "train.py", line 80, in <module>
tm = theano_word_model(We, words, params.embedsize, rel, params.relsize, Rel_init, params.LC, params.Lw, params.eta, params.margin, params.usepeep, params.activation)
File "/home/kaharjan/kbGit/ACL_CKBC/bilinear_ce/commonsense.py", line 243, in __init__
self.we = theano.shared(We_initial).astype(theano.config.floatX)
AttributeError: 'SharedVariable' object has no attribute 'astype'
/home/kaharjan/python-env/gpu/local/lib/python2.7/site-packages/theano/tensor/signal/downsample.py:6: UserWarning: downsample module has been moved to the theano.tensor.signal.pool module.
"downsample module has been moved to the theano.tensor.signal.pool module.")
Using Training Data../commonsendata/Training/new_omcs100.txt
Using Word Embeddings with Dimension 200
Training on 1000 examples using lambda=1e-05
Saving models to: ../models/Bilinear_cetrainSize300frac0.01dSize200relSize150acti0.001.1e-05.200.MAX.tanh.txt
Traceback (most recent call last):
File "train.py", line 80, in <module>
tm = theano_word_model(We, words, params.embedsize, rel, params.relsize, Rel_init, params.LC, params.Lw, params.eta, params.margin, params.usepeep, params.activation)
File "/home/kaharjan/kbGit/ACL_CKBC/bilinear_ce/commonsense.py", line 243, in __init__
self.we = theano.shared(We_initial).astype(theano.config.floatX)
AttributeError: 'SharedVariable' object has no attribute 'astype'