Skip to content

Commit

Permalink
Update reduce.py
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi-glitchhg authored Oct 30, 2023
1 parent ee2d61f commit 288f776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion corrfeatred/reduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def reduce_features(correlation_matrix, threshhold=0.75,policy='min', random_sta

if random_state!=None:
random_gen = random.Random(random_state)
corrmatrix = correlation_matrix.copy()
corrmatrix = correlation_matrix.abs().copy()
inf_ = 4*(corrmatrix.shape[0]) + 10 # adding 10 for no reason, this could be any positive number;
corr_matrix = corrmatrix > threshhold
assert policy in ('min', 'max'), "wrong input parameter"
Expand Down

0 comments on commit 288f776

Please sign in to comment.