You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I was looking through the code for ColinearityThreshold for a similar method I've been putting together and I noticed that in _recursive_collinear_elimination, the user specified collinearity threshold is not propagated into the while loop. I've highlighted the issue with my comment below:
def_recursive_collinear_elimination(association_matrix, threshold):
dum=association_matrix.copy()
most_collinear_features= []
most_collinear_feature, to_drop=_most_collinear(association_matrix, threshold)
most_collinear_features.append(most_collinear_feature)
dum=dum.drop(columns=most_collinear_feature, index=most_collinear_feature)
whilelen(to_drop) >1:
most_collinear_feature, to_drop=_most_collinear(dum, 0.75) # Should be threshold instead of 0.75most_collinear_features.append(most_collinear_feature)
dum=dum.drop(columns=most_collinear_feature, index=most_collinear_feature)
returnmost_collinear_features
Thanks for this fantastic package by the way.
The text was updated successfully, but these errors were encountered:
Hey, I was looking through the code for ColinearityThreshold for a similar method I've been putting together and I noticed that in _recursive_collinear_elimination, the user specified collinearity threshold is not propagated into the while loop. I've highlighted the issue with my comment below:
Thanks for this fantastic package by the way.
The text was updated successfully, but these errors were encountered: