You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you very much for your book! It helps me a lot on the way to change my profession.
I am having difficulty understanding the code in Chapter 6 of the Putting it all Together section. It was difficult for me was to understand arrays in arrays and a lot of matrix transposition operations.
I've reproduced the code myself several times and tried using regular vectors. And I only needed the transpose operation once for the last calculation of weight_1.
I will provide the code below. I got the same result. The code seems easier to read to me. Tell me please, am I on the right way?
Or I misunderstood something important and this is bad code style?
I used constant values of the weights so that I could better understand the operation of the algorithm and in order to be able to duplicate the weights in the original algorithm and compare the results.
Hi, @oleg-tgn I have exactly the same question. It seems that letting weights_2 to be a matrix of (4,1) instead of an array of 4 elements introduces unnecessary complexity.
But my thought is that because the output of the network is one result so we can use the vector for weights_2. But normally the output of a DP is not just one result, but a vector, so the author use a matrix for weights_2
Hello, Andrew!
Thank you very much for your book! It helps me a lot on the way to change my profession.
I am having difficulty understanding the code in
Chapter 6 of the Putting
it all Together section. It was difficult for me was to understand arrays in arrays and a lot of matrix transposition operations.I've reproduced the code myself several times and tried using regular vectors. And I only needed the transpose operation once for the last calculation of
weight_1
.I will provide the code below. I got the same result. The code seems easier to read to me. Tell me please, am I on the right way?
Or I misunderstood something important and this is bad code style?
I used constant values of the weights so that I could better understand the operation of the algorithm and in order to be able to duplicate the weights in the original algorithm and compare the results.
Sorry for my English.
Thank you in advance.
The text was updated successfully, but these errors were encountered: