In this exercise, you will implement a linear decoder (a sparse autoencoder whose output layer uses a linear activation function). You will then apply it to learn features on color images from the STL-10 dataset. These features will be used in an later exercise on convolution and pooling for classifying STL-10 images.
这个很简单,就改了一行代码,把最外层的sigmoid改成了线性函数。
程序跑了48分钟左右,结果如下:(Your sparse autoencoder should learn features which when visualized, look like edges and “opponent colors,” as in the figure below.)
代码在此