Created
December 17, 2020 03:38
-
-
Save ashwanirathee/13e0ec746b99200bfb64f53b1e0732f6 to your computer and use it in GitHub Desktop.
Blog Post 1 Contents
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inputs = [1.0, 2.0, 3.0] | |
weights1 = [0.2, 0.8, -0.5, 1.0] | |
weights2 = [0.5, -0.91, 0.26, -0.5] | |
bias1 = 2.0 | |
bias2 = 3.0 | |
output = [inputs[1]*weights1[1] + inputs[2]*weights1[2] + inputs[3]*weights1[3] + inputs[4]*weights1[4] + bias1, | |
inputs[1]*weights2[1] + inputs[2]*weights2[2] + inputs[3]*weights2[3] + inputs[4]*weights2[4] + bias2] | |
println(output) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment