0bd0e2dc1a41966ed811a5643e60971656874d8f,features.py,,drop_features,#Any#Any#,816
Before Change
// Remove duplicated columns
remove = []
c = X.columns
for i in range(len(c)-1):
v = X[c[i]].values
for j in range(i+1, len(c)):
if np.array_equal(v, X[c[j]].values):
remove.append(c[j])
logger.info("Removing Duplicated Columns: %s", remove)
X.drop(remove, axis=1, inplace=True)
logger.info("Removed %d Duplicated Features", len(remove))
After Change
logger.info("Removing Duplicate Columns")
dups = duplicate_columns(X)
X = X.drop(dups, axis=1)
logger.info("Removed %d Duplicate Columns", len(dups))
// Remove constant columns
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: ScottfreeLLC/AlphaPy
Commit Name: 0bd0e2dc1a41966ed811a5643e60971656874d8f
Time: 2016-05-04
Author: Mark.R.Conway@gmail.com
File Name: features.py
Class Name:
Method Name: drop_features
Project Name: metagenome-atlas/atlas
Commit Name: 3ab0e54a3ce88c7018a34192461dd47e5867d357
Time: 2017-01-28
Author: joe.brown@pnnl.gov
File Name: atlas/tables.py
Class Name:
Method Name: col_split
Project Name: bokeh/bokeh
Commit Name: 2f045e23607f4660d3920d6a91e322311516d6d6
Time: 2017-03-29
Author: jsignell@gmail.com
File Name: examples/plotting/file/unemployment.py
Class Name:
Method Name: