Skip to content

Commit

Permalink
fix: 🐛 replace the hardcoded threshold by the user defined one, closes
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Bury committed Sep 22, 2023
1 parent fddbc17 commit 14b33af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arfs/feature_selection/unsupervised.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ def _recursive_collinear_elimination(association_matrix, threshold):
dum = dum.drop(columns=most_collinear_feature, index=most_collinear_feature)

while len(to_drop) > 1:
most_collinear_feature, to_drop = _most_collinear(dum, 0.75)
most_collinear_feature, to_drop = _most_collinear(dum, threshold)
most_collinear_features.append(most_collinear_feature)
dum = dum.drop(columns=most_collinear_feature, index=most_collinear_feature)
return most_collinear_features

0 comments on commit 14b33af

Please sign in to comment.