

def test_sweep_alpha(self):
    for i in range(3):
        alpha = self.alphas[i, :]
        res2 = self.model.fit_regularized(method='l1', alpha=alpha, disp=0, acc=1e-10, trim_mode='off', maxiter=1000)
        assert_almost_equal(res2.params, self.res1.params[i], DECIMAL_4)

dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/discrete/tests/test_discrete.py TestSweepAlphaL1.test_sweep_alpha/original