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

Before Change


        self: object
            Returns a copy of the estimator
        
        subset_files = os.listdir(self.subset_dir)
        self.subset_i = self.subset_dir + "/" + self.sel_subset_fname
        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)

After Change


        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: 4

Non-data size: 3

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: coala/coala-bears
Commit Name: b9f710538abab20f120d3d3e23c123ba7a6f7536
Time: 2018-07-10
Author: rafidteam@gmail.com
File Name: tests/c_languages/codeclone_detection/ClangCloneDetectionBearTest.py
Class Name: ClangCloneDetectionBearTest
Method Name: test_clones


Project Name: mtobeiyf/audio-classification
Commit Name: 55e6def4d984c34679ab3c48a90055e93d351f79
Time: 2018-11-25
Author: mvrozanti@hotmail.com
File Name: feat_extract.py
Class Name:
Method Name:


Project Name: p2irc/deepplantphenomics
Commit Name: c2ee60788af44fae1835da27aa41ee14974b6e18
Time: 2020-02-06
Author: dbl599@mail.usask.ca
File Name: deepplantphenomics/heatmap_object_counting_model.py
Class Name: HeatmapObjectCountingModel
Method Name: __labels_to_heatmaps