

@classmethod
def setupClass(cls):
    data = sm.datasets.spector.load()
    data.exog = sm.add_constant(data.exog, prepend=True)
    cls.model = Logit(data.endog, data.exog)
    cls.alphas = np.array([[0.1, 0.1, 0.1, 0.1], [0.4, 0.4, 0.5, 0.5], [0.5, 0.5, 1, 1]])
    data.res1 = DiscreteL1()
    cls.res1.sweep()

dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/discrete/tests/test_discrete.py TestSweepAlphaL1.setupClass/VarMisuse@98/109 `cls`->`data`