def test_logistic_cg():
    try:
        import scipy
        logistic_cg.cg_optimization_mnist(n_epochs=10)
    except __HOLE__:
        from nose.plugins.skip import SkipTest
        raise SkipTest(
            'SciPy not available. Needed for the logistic_cg example.')
dataset/ETHPy150Open lisa-lab/DeepLearningTutorials/code/test.py/test_logistic_cg