Make a equation with weight and bias in ANN

Hello guys,
I'm currently making a ANN which is one hidden layer with 8 neurons, and one output layer with 1 neurons.
I wanna make the equation of prediction so that I can get the value when the new input value comes.
I've been using Artificial Neural Network tool box, and here is my guess.
Input value X
Layer 1 : y1 = Sigmoid(X*W1+b1)
Layer 2 : y2 = y1*W2+b2
However, When I doing like this, the output value is different with model.
How can I use the weights and bias in equation?
Thanks.

답변 (1개)

Vineet Joshi
Vineet Joshi 2021년 12월 8일

0 개 추천

Hi
When you create a neural network, the weights and bias are usually randomly initialized (folllowing some distribution).
You can set weights and bias by using the following functions.
Regards

댓글 수: 1

oh, in that case, I already got it.
I just wanna make a equation using weights and bias which are one of the result of my NN network.
Thanks

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

카테고리

도움말 센터File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

제품

릴리스

R2021b

질문:

2021년 12월 3일

댓글:

2021년 12월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by