Spaces:
Sleeping
Sleeping
price benchmark
Browse files
clean_selection/analyze_clean_hierarchical_loss_protein_vec.ipynb
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:17792a81e3b66606738ca77aa001077daa7f5c0063b3f956902996871561817c
|
| 3 |
+
size 86942
|
clean_selection/clean_utils.py
CHANGED
|
@@ -27,6 +27,10 @@ def get_true_labels_test(file_name, test_idx: None):
|
|
| 27 |
for ec in true_ec_lst:
|
| 28 |
if test_idx is not None and count - 1 in test_idx:
|
| 29 |
all_label.add(ec)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
if header:
|
| 31 |
header = False
|
| 32 |
true_label = [true_label_dict[i] for i in true_label_dict.keys()]
|
|
|
|
| 27 |
for ec in true_ec_lst:
|
| 28 |
if test_idx is not None and count - 1 in test_idx:
|
| 29 |
all_label.add(ec)
|
| 30 |
+
elif test_idx is None: ## add all EC labels
|
| 31 |
+
all_label.add(ec)
|
| 32 |
+
else:
|
| 33 |
+
continue
|
| 34 |
if header:
|
| 35 |
header = False
|
| 36 |
true_label = [true_label_dict[i] for i in true_label_dict.keys()]
|