Example #1
0
 def test_objective(self):
     r = LogisticRegression(0.1, self.X, self.Y)
     obj = r._objective(array([1.0]*r.p))
     print(obj)
     obj_long = r._objective_long_way(array([1.0]*r.p))
     self.assertAlmostEqual(obj, obj_long)