

@classmethod
def setupClass(cls):
    if (not has_basinhopping):
        raise SkipTest('Skipped TestProbitBasinhopping since basinhopping solver is not available')
    data = sm.datasets.spector.load()
    data.exog = sm.add_constant(data.exog, prepend=False)
    res2 = Spector()
    res2.probit()
    cls.res2 = res2
    fit = Probit(data.endog, data.exog).fit
    cls.res1 = fit(method='basinhopping', disp=0, niter=5, minimizer={
        'method': 'L-BFGS-B',
        'tol': 1e-08,
    })

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