9c4abcc2ccb26adc84f0ae4cf8ae4ea62f756dc0,Orange/preprocess/fss.py,FeatureSelector,__call__,#FeatureSelector#Any#,16

Before Change


                 if not isinstance(f, self.method.feature_type)]
        scores = [self.method(f, data) for f in features]
        top_ind = self.select_best(scores)
        domain = Orange.data.Domain([features[i] for i in top_ind] + other,
                                    data.domain.class_vars, data.domain.metas)
        return data.from_table(domain, data)

After Change


        other = [f for f in data.domain.attributes
                 if not isinstance(f, self.method.feature_type)]
        scores = [self.method(f, data) for f in features]
        best = sorted(zip(scores, features), key=itemgetter(0),
                      reverse=self.decreasing)
        if self.k:
            best = best[:self.k]
        if self.threshold:
            pred = ((lambda x: x[0] >= self.threshold) if self.decreasing else
                    (lambda x: x[0] <= self.threshold))
            best = takewhile(pred, best)

        domain = Orange.data.Domain([f for s, f in best] + other,
                                    data.domain.class_vars, data.domain.metas)
        return data.from_table(domain, data)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: biolab/orange3
Commit Name: 9c4abcc2ccb26adc84f0ae4cf8ae4ea62f756dc0
Time: 2015-02-11
Author: lan.zagar@fri.uni-lj.si
File Name: Orange/preprocess/fss.py
Class Name: FeatureSelector
Method Name: __call__


Project Name: fxsjy/jieba
Commit Name: 751ff35eb5faa6460038bb20a1ef6bfcf29f440a
Time: 2014-10-31
Author: abcdoyle888@gmail.com
File Name: jieba/analyse/__init__.py
Class Name:
Method Name: extract_tags


Project Name: snipsco/snips-nlu
Commit Name: 875b2af240cbd6ba5ec512ea6e1cce89e4d0db67
Time: 2019-01-08
Author: clement.doumouro@gmail.com
File Name: snips_nlu/entity_parser/custom_entity_parser.py
Class Name:
Method Name: _stem_entity_utterances