文档是这么写的: border_mode: str, int or tuple of two int Either of the following: ``'valid'``: apply filter wherever it completely overlaps with the input. Generates output of shape: input shape - filter shape + 1 ``'full'``: apply filter wherever it partl…
来自:http://deeplearning.net/software/theano/tutorial/shape_info.html How Shape Information is Handled by Theano 当建立一个graph的时候,是没法严格的执行theano变量的shape的,因为在运行的时候将具体的值作为提供给一个theano函数的参数来说,也许会受到它graph中theano变量的shape的限制. 当前,有两种方式来使用shape信息: 当准确的输出shape已经提前知…
使用了两个卷积层.一个全连接层和一个softmax分类器. 在测试数据集上正确率可以达到99.22%. 代码参考了neural-networks-and-deep-learning #coding:utf8 import cPickle import numpy as np import theano import theano.tensor as T from theano.tensor.nnet import conv from theano.tensor.nnet import softm…
Summary on deep learning framework --- Theano && Lasagne 2017-03-23 1. theano.function output = input ** 2 f = theano.function([input], output) print(f(3)) >> the output is: 3^2 = 9. 2. verbose = 1 or 0, does it have any difference ? so…
一 theano内置数据类型 只有thenao.shared()类型才有get_value()成员函数(返回numpy.ndarray)? 1. 惯常处理 x = T.matrix('x') # the data is presented as rasterized images y = T.ivector('y') # the labels are presented as 1D vector of [int] labels # reshape matrix of rasterized im…