Issue about Autoencoder Network Architecture
이전 댓글 표시
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
2023년 10월 23일
Shreeya
2023년 12월 16일
logsig activation function returns values between 0 and 1. Can you please elaborate why is the expected output a negative number, since the equation as shown in the image should return a positive number ?
jiajun
2023년 12월 16일
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
2023년 12월 27일
0 개 추천
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.
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
