フィルターのクリア

hardlim returns 0.5 and 1 !!

1 回表示 (過去 30 日間)
Morteza
Morteza 2019 年 3 月 27 日
回答済み: Garrett Beard 2021 年 12 月 3 日
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 件のコメント
Hugo Fournier
Hugo Fournier 2020 年 2 月 24 日
Same problem here. Have you found a solution?
Morteza
Morteza 2020 年 2 月 25 日
Unfortunately No. We can replace 0.5 by 0.

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

採用された回答

Garrett Beard
Garrett Beard 2021 年 12 月 3 日
'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 件)

Community Treasure Hunt

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

Start Hunting!

Translated by