Did I find the right examples for you? yes no

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

src/s/c/scikit-learn-0.14.1/sklearn/datasets/tests/test_mldata.py   scikit-learn(Download)
 
from sklearn.utils.testing import assert_in
from sklearn.utils.testing import assert_not_in
from sklearn.utils.testing import mock_mldata_urlopen
from sklearn.utils.testing import assert_equal
        for n in ["COL_NAMES", "DESCR", "data"]:
            assert_in(n, dset)
        assert_not_in("target", dset)
 
        assert_equal(dset.data.shape, (2, 3))
        for n in ["COL_NAMES", "DESCR", "target", "data", "z"]:
            assert_in(n, dset)
        assert_not_in("x", dset)
        assert_not_in("y", dset)
 
        for n in ["COL_NAMES", "DESCR", "target", "data", "z"]:
            assert_in(n, dset)
        assert_not_in("x", dset)
        assert_not_in("y", dset)
 

src/s/c/scikit-learn-0.14.1/sklearn/feature_selection/tests/test_feature_select.py   scikit-learn(Download)
from nose.tools import assert_equal, assert_raises, assert_true
from numpy.testing import assert_array_equal, assert_array_almost_equal
from sklearn.utils.testing import assert_not_in
 
from sklearn.utils import safe_mask
        Xt = SelectKBest(chi2, k=2).fit_transform(X, y)
        assert_equal(Xt.shape, (2, 2))
        assert_not_in(9998, Xt)
 
        Xt = SelectPercentile(chi2, percentile=67).fit_transform(X, y)
        assert_equal(Xt.shape, (2, 2))
        assert_not_in(9998, Xt)