Beispiel #1
0
 def test_backprop_partial_e_value(self):
     nt = Network()
     nt.y_hat, nt.Op = 5, 2
     self.assertTrue((nt.partial_e() == -3))
Beispiel #2
0
 def test_least_squares(self):
     nt = Network()
     nt.y_hat, nt.Op = 5, 2
     self.assertTrue((nt.least_squares() == 4.5))