hardlim returns 0.5 and 1 !!
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Morteza
le 27 Mar 2019
Réponse apportée : Garrett Beard
le 3 Déc 2021
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 commentaires
Réponse acceptée
Garrett Beard
le 3 Déc 2021
'net variable'.output.processFcns = {}
By default, the neural network class applies mapminmax to the output vector. Remove the normalization and you will get [0, 1] for outputs.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Define Shallow Neural Network Architectures dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!