Did I find the right examples for you? yes no

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

src/o/r/Orange-2.7.2/Orange/testing/unit/tests/test_feature_selection.py   Orange(Download)
    def test_select_features_subset(self):
        data = Orange.data.Table("lenses")
 
        d1 = selection._select_features_subset(data, [])
        self.assertSequenceEqual(d1.domain.features, [])
        self.assertIs(d1.domain.class_var, data.domain.class_var)
 
        d1 = selection._select_features_subset(data, [data.domain[0]])
        data = Orange.data.Table(domain, data)
 
        d1 = selection._select_features_subset(data, [data.domain[0]])
        self.assertSequenceEqual(d1.domain.features, [data.domain[0]])
        self.assertIs(d1.domain.class_var, data.domain.class_var)