Sigmoid function doesn't work with MNIST dataset.
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi everybody, my net have to recognise if an image from the MNIST database represents the digit I choose.
An image is a vector of 784 values between 0 and 1. I can't perform the forward propagation because the sigmoid function returns "1" everytime.
All net dimensions are dynamic, but for debugging purposes I'm using a 2 layer net with 2 nodes on the first layer and 1 output node (I only need to see the output changing, but it doesn't!); I already tried with more layers and more nodes but I still have this problen. In the hidden layer the activation function is the sigmoid; in the output layer it is the identity function.
I tried to preprocess the input (scale from a 28x28 to a 14x14 img) but it didn't work.
Thank you in advance for your help!
댓글 수: 1
Srikanth Sedimbi
2017년 8월 8일
Are you using any of the MATLAB inbuilt functions for sigmoid or did you write your own sigmoid function? Just post the code for sigmoid function and the corresponding inputs and outputs
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!