Autoencoder
运行指定函数后,我得到一个类类型的对象:
[X,T] = wine_dataset;
hiddenSize = 25;
autoenc1 = trainAutoencoder(X,hiddenSize,...
'L2WeightRegularization',0,...
'SparsityRegularization',0,...
'SparsityProportion',1,...
'DecoderTransferFunction','purelin');
如果我尝试查询其中一个属性,我可以毫无问题地得到它,
>> autoenc1.EncoderWeights(1,1)
ans = -0.0404
但是,如果我尝试设置它,我会收到错误消息:
>> autoenc1.EncoderWeights(1,1) = 0.4
In class 'Autoencoder', no set method is defined for Dependent property 'EncoderWeights'. A
Dependent property needs a set method to assign its value.