필터 지우기
필터 지우기

Remove Bias from neural net

조회 수: 11 (최근 30일)
Andriy Artemyev
Andriy Artemyev 2021년 5월 20일
댓글: Andriy Artemyev 2021년 5월 24일
Greetings, I have a neural network that is forecasting financial data. In some cases, my 3 input features are going to be full of zeros. In those cases, my network will give me a nonzero output, even if all the inputs are zero. This is very problematic for my particular problem. I think this is due to the biases in the network. Is there a way to train a networks weights, but force the biases to zero? I also fitted a linear regression model, where I could simply remove the intercept to solve this problem.
I unfortunately could not find information on this topic and hope that someone can help me out!
Thanks in advance,
Andy

채택된 답변

Srivardhan Gadila
Srivardhan Gadila 2021년 5월 22일
You can remove the bias by setting the value of net.biasConnect of all the layers of the neural network to zero. Refer to the documentation of net.biasConnect for more information. If you want to access the bias value of the neural network refer to the documentation of net.b.
  댓글 수: 1
Andriy Artemyev
Andriy Artemyev 2021년 5월 24일
Thank you very much I will try this out!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by