73 KiB
73 KiB
In [1]:
from IPython.display import YouTubeVideo
YouTubeVideo('5u0jaA3qAGk',width=640,height=360)Out [1]:
In [2]:
YouTubeVideo('GlcnxUlrtek',width=640,height=360)Out [2]:
In [5]:
from partSix import *
print(X)
print(y)[[0.3 1. ] [0.5 0.2] [1. 0.4]] [[0.75] [0.82] [0.93]]
In [6]:
# put your code here
NN = Neural_Network()
NN.forward(X)
Out [6]:
array([[0.52155376],
[0.41215014],
[0.41576012]])In [7]:
NN.costFunction(X, y )Out [7]:
array([0.24148593])
In [8]:
from IPython.display import YouTubeVideo
YouTubeVideo('9KM9Td6RVgQ',width=640,height=360)Out [8]:
In [10]:
#Put your code here
T = trainer(NN)
T.train(X,y)Optimization terminated successfully.
Current function value: 0.000000
Iterations: 36
Function evaluations: 39
Gradient evaluations: 39
In [14]:
print(NN.forward(X))
print(NN.costFunction(X, y ))
print(y)[[0.74998259] [0.82002105] [0.93000224]] [3.75622733e-10] [[0.75] [0.82] [0.93]]
In [15]:
from IPython.display import HTML
HTML(
"""
<iframe
src="https://goo.gl/forms/SIRHykeawcq3Ip753"
width="80%"
height="600px"
frameborder="0"
marginheight="0"
marginwidth="0">
Loading...
</iframe>
"""
)Out [15]:
