= correlated_features.index# the collection of feature variable names we'll drop due to their being correlated to other_1 in correlated_feature_variable_names:
for name_2 in correlated_feat
def fit(self, X, y=None): correlated_features= set() # Set of all the names of correlated columns for i incolname = corr_matrix.columns[i] # getting the name of column
alpha, corr)) print(colX +' and ' +colY+ ' two ariables are not correlated') print(colX +' and ' +colY+ ' two variables are highly correlated '))Out [1]:
Pears