Пример #1
0
 def test_courseraML_CostFuncMultiOutputWithRegul(self):
     result = courseraML_CostFunc(self.forwardWeightAllLayers, self.inputs, self.targets, 1, self.nn)
     self.assertAlmostEqual(result, 0.38376985909092481)
Пример #2
0
 def test_courseraML_CostFuncMultiOutputNoRegul(self):
     result = courseraML_CostFunc(self.forwardWeightAllLayers, self.inputs, self.targets, 0, self.nn)
     self.assertAlmostEqual(result, 0.28762916498285923)