Spaces:
Runtime error
Runtime error
Commit ·
49cb2d6
1
Parent(s): 174521f
model
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ def data_description(action_type):
|
|
| 30 |
return data
|
| 31 |
if action_type == "Feature Selection By Chi Square":
|
| 32 |
feature_scores = chi2(input_data, target_data)[0]
|
| 33 |
-
data = [["Feature", "
|
| 34 |
for score, fname in sorted(zip(feature_scores, col_values), reverse=True)[:10]:
|
| 35 |
data.append([fname, score])
|
| 36 |
return data
|
|
|
|
| 30 |
return data
|
| 31 |
if action_type == "Feature Selection By Chi Square":
|
| 32 |
feature_scores = chi2(input_data, target_data)[0]
|
| 33 |
+
data = [["Feature", "Chi-Square (Frequency Distribution)"]]
|
| 34 |
for score, fname in sorted(zip(feature_scores, col_values), reverse=True)[:10]:
|
| 35 |
data.append([fname, score])
|
| 36 |
return data
|