- a = [(model.id, float(model.main_test_accuracy)) for model in models]
- a.sort(key=lambda p: p[0])
- s = " ".join([f"{p[1]*100:.02f}%" for p in a])
- log_string(f"current accuracies {s}")
-
- # select the model with lowest accuracy
- models.sort(key=lambda model: model.main_test_accuracy)
- model = models[0]