File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 17
17
from src .evaluation import Evaluator
18
18
19
19
20
- # VALIDATION_METRIC = 'precision_at_1-nn'
21
- VALIDATION_METRIC = 'precision_at_1-csls_knn_10'
22
- # unsupervised criterion: 'mean_cosine-csls_knn_10-S2T-10000'
23
- # supervised criterion: 'precision_at_1-csls_knn_10'
20
+ VALIDATION_METRIC_SUP = 'precision_at_1-csls_knn_10'
21
+ VALIDATION_METRIC_UNSUP = 'mean_cosine-csls_knn_10-S2T-10000'
22
+
24
23
25
24
# main
26
25
parser = argparse .ArgumentParser (description = 'Supervised training' )
78
77
# one ("default") or create one based on identical character strings ("identical_char")
79
78
trainer .load_training_dico (params .dico_train )
80
79
80
+ # define the validation metric
81
+ VALIDATION_METRIC = VALIDATION_METRIC_UNSUP if params .dico_train == 'identical_char' else VALIDATION_METRIC_SUP
82
+ logger .info ("Validation metric: %s" % VALIDATION_METRIC )
83
+
81
84
"""
82
85
Learning loop for Procrustes Iterative Learning
83
86
"""
You can’t perform that action at this time.
0 commit comments