Skip to content

Instantly share code, notes, and snippets.

@valadhi
Created July 30, 2014 12:05
Show Gist options
  • Save valadhi/be7cb653c071de60616d to your computer and use it in GitHub Desktop.
Save valadhi/be7cb653c071de60616d to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "emotions.py", line 1613, in <module>
main()
File "emotions.py", line 1576, in main
rbmEmotions()
File "emotions.py", line 137, in rbmEmotions
net.train(trainData)
File "/home/vlad/individProject/restrictedBoltzmannMachine.py", line 316, in train
trainFunction(miniBatchIndex, momentum, step)
File "/home/vlad/individProject/DBenv/local/lib/python2.7/site-packages/theano/compile/function_module.py", line 588, in __call__
self.fn.thunks[self.fn.position_of_error])
File "/home/vlad/individProject/DBenv/local/lib/python2.7/site-packages/theano/compile/function_module.py", line 579, in __call__
outputs = self.fn()
ValueError: Shape mismatch: x has 1250 cols (and 10 rows) but y has 625 rows (and 800 cols)
Apply node that caused the error: Dot22(Subtensor{int64:int64:}.0, W)
Inputs shapes: [(10, 1250), (625, 800)]
Inputs strides: [(10000, 8), (6400, 8)]
Inputs types: [TensorType(float64, matrix), TensorType(float64, matrix)]
Use the Theano flag 'exception_verbosity=high' for a debugprint of this apply node.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment