필터 지우기
필터 지우기

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