hardlim returns 0.5 and 1 !!
Show older comments
I have a binarry classification problem with 0-1 classes. I used 3layered neural network with "hardlim" as the activation function of output layer and "tansig" for hidden and input layer. I am wonderfull why my predicted output contains 0.5 and 1 instead of 0-1 !!
Does MATLAB automatically normalizes data when we use it's standard function for NN? Or I should manually normalize data?
5 Comments
Greg Heath
on 27 Mar 2019
Edited: Greg Heath
on 27 Mar 2019
Woefully insufficient information.
How many hidden layers??
% One is ALWAYS sufficient but may not be practical
Greg
Morteza
on 28 Mar 2019
Morteza
on 26 Apr 2019
Hugo Fournier
on 24 Feb 2020
Same problem here. Have you found a solution?
Morteza
on 25 Feb 2020
Accepted Answer
More Answers (0)
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!