def __init__(self,
input,
nvis,
nhid,
rnd=None,
theano_rng=None,
bhid=None,
sigma=0.06,
nonlinearity=NonLinearity.SIGMOID,
cost_type=CostType.MeanSquared,
bvis=None):
self.sigma = sigma
super(ContractiveAutoencoder, self).__init(
input=input,
nvis=nvis,
nhid=nhid,
rnd=rnd,
bhid=bhid,
cost_type=cost_type,
nonlinearity=nonlinearity,
sparse_initialize=True,
bvis=bvis)
# Create a Theano random generator that gives symbolic random values
if not theano_rng:
theano_rng = RandomStreams(rnd.randint(2**30))
self.theano_rng = theano_rng
评论列表
文章目录