Skip to content

Commit b1952ca

Browse files
authored
Update mutual_info.py
1 parent 44de78d commit b1952ca

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tools/mutual_info.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ def calculate_mi(X, y):
2727
return mi_scores
2828

2929

30-
if condtion:
31-
import seaborn as sns
32-
import matplotlib.pyplot as plt
33-
calculate_mi(X, y, discrete_features)
34-
#sns.lmplot(x=.. , y=.. , hue=.. , data=..)
30+
if __name__ == "__main__":
31+
if condtion:
32+
import seaborn as sns
33+
import matplotlib.pyplot as plt
34+
calculate_mi(X, y, discrete_features)
35+
#sns.lmplot(x=.. , y=.. , hue=.. , data=..)

0 commit comments

Comments
 (0)