当Theano报错:No suitable SharedVariable constructor could be found. Are you sure all kwargs are supported?
Solution: array type variable becomes the variable
Source:
self.W = theano.shared(value = W, borrow = True)
self.b = theano.shared(value = b, borrow = True)
change into:
self.W = theano.shared (value = numpy.asarray ( W), borrow = True) # original code: value = W, amended as: value = numpy.asarray (W)
self.b = theano.shared (value = numpy.asarray (b), borrow = True)
may try another embodiment:
removing borrow = True (comma also be removed Oh)