Last active
November 11, 2022 10:31
-
-
Save veb-101/5947cd7109a6d1adba872a089964b724 to your computer and use it in GitHub Desktop.
Radial basis function network for XOR
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the end_to_end function, first I calculated the similarity between the inputs and the peaks.
Then, to find w used the equation Aw= Y in matrix form.
Each row of A (shape: (4, 2)) consists of
Y: Output associated with the input (shape: (4, ))
W is calculated using the same equation we use to solve linear regression using a closed solution (normal equation).
This part is the same as using a neural network architecture of 2-2-1,
To find the weights for the edges to the 1-output unit. Weights associated would be: