Issue about Autoencoder Network Architecture

3 ビュー (過去 30 日間)
jiajun
jiajun 2023 年 10 月 23 日
回答済み: Ayush Aniket 2023 年 12 月 27 日
I'm having a problem with the autoencoder. I have both the encoder and decoder transfer functions for the network set to logsig. according to the formula that autoencoder runs on, the output should not be negative. However, this does happen, can you answer my query?
  4 件のコメント
jiajun
jiajun 2023 年 12 月 16 日
From a theoretical point of view, the activation function of both the encoder and the decoder is logsig, with no negative output values being possible. However, this does happen in my program (both input and output values are negative). So I would love to know why the decoder is still able to output negative values when using the logsig activation function
Venu
Venu 2023 年 12 月 27 日
I think you have to review your network architecture, layer connectivity. Inspect the properties of each layer to ensure that the correct activation function is assigned. You can try checking Initialization of weights and biases, verify whether your input data is scaled (Normalization) properly to work well with logsig function.

サインインしてコメントする。

回答 (1 件)

Ayush Aniket
Ayush Aniket 2023 年 12 月 27 日
Hi jiajun,
As per my understanding, the output from your autoencoder is negative even after setting the encoder and decoder transfer functions to 'logsig'. The reason for this occurrence is scaling of data. Since you mentioned that your input data is negative, to apply 'logsig' the 'trainAutoencoder' function scales the data to the range of the decoder activation function. This is a default 'true' parameter. Now, if the input data has been scaled, the output data is also scaled back to the initial range by the 'predict', 'encode' and 'decode' methods.
Please refer to the following documentation section link to read more about the 'ScaleData' input argument and the process of scaling:
Hope it helps.

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by