We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13a194f commit 002e8e7Copy full SHA for 002e8e7
src/sagemaker_xgboost_container/algorithm_mode/train_utils.py
@@ -36,7 +36,9 @@ def get_union_metrics(metric_a, metric_b):
36
elif metric_b is None:
37
return metric_a
38
else:
39
- metric_list = list(set(metric_a).union(metric_b))
+ # The order of metric_list need to be consistent among all hosts in distributed training
40
+ # So we have metric_list sorted here.
41
+ metric_list = sorted(list(set(metric_a).union(metric_b)))
42
return metric_list
43
44
0 commit comments