Did I find the right examples for you? yes no

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

src/s/k/sklearn-compiledtrees-1.2/compiledtrees/__init__.py   sklearn-compiledtrees(Download)
from compiledtrees.compiled import CompiledRegressionPredictor
 
__all__ = ["CompiledRegressionPredictor"]
 

src/s/k/sklearn-compiledtrees-1.2/compiledtrees/tests/test_compiled.py   sklearn-compiledtrees(Download)
from sklearn import ensemble, tree
from compiledtrees.compiled import CompiledRegressionPredictor
from sklearn.utils.testing import \
    assert_array_almost_equal, assert_raises, assert_equal
import numpy as np
def assert_equal_predictions(cls, X, y):
    clf = cls()
    clf.fit(X, y)
    compiled = CompiledRegressionPredictor(clf)
    assert_array_almost_equal(clf.predict(X), compiled.predict(X))