ufldl的练习Sparse Autoencoder中,运行train.m,有错误。octave提示如下:
>> train
error: set: invalid number of arguments
error: called from
image>__img__ at line 201 column 5
image at line 119 column 10
imagesc at line 98 column 12
display_network at line 93 column 6
train at line 32 column 1
应该是在display_network(patches(:,randi(size(patches,2),200,1)),8);这句出现了问题?请问有大神遇到这种问题吗?求解答。
问题找到了,是OCtave不兼容的原因,一样的代码,用MATLAB跑,就OK!