def test_dof_with_fit(self): m = self.model g = Gaussian() g1 = Gaussian() m.extend((g, g1)) g1.set_parameters_not_free('A') m.fit() assert_true(np.equal(m.dof(), 5))
def test_dof_with_p0(self): m = self.model g = Gaussian() g1 = Gaussian() m.extend((g, g1)) g1.set_parameters_not_free('A') m._set_p0() m._set_current_degrees_of_freedom() assert_true(np.equal(m.dof(), 5))