Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/s/k/sklearn-compiledtrees-1.2/compiledtrees/tests/test_compiled.py   sklearn-compiledtrees(Download)
def test_rejects_unfitted_regressors_as_compilable():
    for cls in REGRESSORS:
        assert_equal(CompiledRegressionPredictor.compilable(cls()), False)
        assert_raises(ValueError, CompiledRegressionPredictor, cls())
 
 
def test_rejects_classifiers_as_compilable():
    for cls in CLASSIFIERS:
        assert_equal(CompiledRegressionPredictor.compilable(cls()), False)