We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e76b11b commit a240027Copy full SHA for a240027
1 file changed
code/test.py
@@ -18,7 +18,12 @@ def test_logistic_sgd():
18
19
20
def test_logistic_cg():
21
- logistic_cg.cg_optimization_mnist(n_epochs=10)
+ try:
22
+ import scipy
23
+ logistic_cg.cg_optimization_mnist(n_epochs=10)
24
+ except ImportError:
25
+ from nose.plugins.skip import SkipTest
26
+ raise SkipTest('SciPy not available. Needed for the logistic_cg example.')
27
28
29
def test_mlp():
0 commit comments