ef29cd9bde8695645d63ae7f568fb298809e7b19,tpot/builtins/dataset_selector.py,DatasetSelector,fit,#DatasetSelector#Any#Any#,43

Before Change


        features_i_df = pd.read_csv(self.subset_i, sep="\t", header=0)
        if isinstance(X, pd.DataFrame): // use columns" names
            self.feature_names = list(X.columns.values)
            feature_i = [str(val) for val in features_i_df.values.flatten()]
        elif isinstance(X, np.ndarray): // use index
            self.feature_names = list(range(X.shape[1]))
            feature_i = [int(val) for val in features_i_df.values.flatten()]
        self.feat_list = list(set(feature_i).intersection(set(self.feature_names)))

After Change


            self.sel_subset_name = subset_df.index[self.sel_subset]
        elif isinstance(self.sel_subset, list):
            self.sel_subset_name = []
            for s in self.sel_subset:
                if isinstance(s, int):
                    self.sel_subset_name.append(subset_df.index[s])
                else:
                    self.sel_subset_name.append(s)
        else: // self.sel_subset is a string
            self.sel_subset_name = self.sel_subset

        sel_features = subset_df.loc[self.sel_subset_name, "Features"]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: EpistasisLab/tpot
Commit Name: ef29cd9bde8695645d63ae7f568fb298809e7b19
Time: 2018-10-15
Author: weixuanf@pennmedicine.upenn.edu
File Name: tpot/builtins/dataset_selector.py
Class Name: DatasetSelector
Method Name: fit


Project Name: EpistasisLab/tpot
Commit Name: ef29cd9bde8695645d63ae7f568fb298809e7b19
Time: 2018-10-15
Author: weixuanf@pennmedicine.upenn.edu
File Name: tpot/builtins/dataset_selector.py
Class Name: DatasetSelector
Method Name: fit


Project Name: explosion/thinc
Commit Name: 61dce6375e39c20f571049161da2a341f2592393
Time: 2017-01-28
Author: honnibal@gmail.com
File Name: thinc/tests/integration/test_basic_tagger.py
Class Name:
Method Name: test_small_end_to_end


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 08a4d83a7836b0de430850e72a64e283bdc56d05
Time: 2017-07-17
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/simulation/plotting.py
Class Name:
Method Name: output_graphs