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


        if isinstance(self.sel_subset, int):
            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: 10

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: ilastik/ilastik
Commit Name: 79f89b2a58b09a603967daeeaeed0e53271c9cc1
Time: 2013-04-16
Author: webmaster@burgerdev.de
File Name: ilastik/applets/objectClassification/guiMessage.py
Class Name: LabelsChangedDialog
Method Name: getDetails


Project Name: home-assistant/home-assistant
Commit Name: 3f6a5564ad9c94f3c572e65227e54bf67c112888
Time: 2016-10-29
Author: wokar@users.noreply.github.com
File Name: homeassistant/components/media_player/lg_netcast.py
Class Name: LgTVDevice
Method Name: update