

@classmethod
def setupClass(cls):
    data = sm.datasets.spector.load()
    data.exog = sm.add_constant(data.exog, prepend=True)
    alpha = np.array([0.1, 0.2, 0.3, 10])
    cls.res1 = Probit(data.endog, data.exog).fit_regularized(method='l1', alpha=alpha, disp=0, trim_mode='auto', auto_trim_tol=0.02, acc=1e-10, maxiter=1000)
    res2 = DiscreteL1()
    res2.probit()
    cls.res2 = res2

dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/discrete/tests/test_discrete.py TestProbitL1.setupClass/original