Spaces:
Running
Running
charlieoneill
commited on
Commit
•
aee51e6
1
Parent(s):
116d200
fixed correation again
Browse files
app.py
CHANGED
@@ -925,7 +925,7 @@ def create_interface():
|
|
925 |
return gr.CheckboxGroup(choices=[])
|
926 |
matches = [f for f in subject_data[current_subject]['feature_analysis'] if search_text.lower() in f['label'].lower()]
|
927 |
for match in matches:
|
928 |
-
if math.isnan(match['
|
929 |
match['pearson_correlation'] = 0
|
930 |
matches = sorted(matches, key=lambda x: x['pearson_correlation'], reverse=True)
|
931 |
matches = [f"{f['label']} ({f['index']})" for f in matches]
|
|
|
925 |
return gr.CheckboxGroup(choices=[])
|
926 |
matches = [f for f in subject_data[current_subject]['feature_analysis'] if search_text.lower() in f['label'].lower()]
|
927 |
for match in matches:
|
928 |
+
if math.isnan(match['pearson_correlation']):
|
929 |
match['pearson_correlation'] = 0
|
930 |
matches = sorted(matches, key=lambda x: x['pearson_correlation'], reverse=True)
|
931 |
matches = [f"{f['label']} ({f['index']})" for f in matches]
|