-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Labels
Description
The interface of the function is
def get_performance_dictionary(
optimizer_path, mode="most", metric="valid_accuracies", conv_perf_file=None
):
But, despite providing e.g. "valid_accuracies", the function returns sometimes the "test_accuracies".
The explanation can be found in the following line of code (permalink to dev branch):
DeepOBS/deepobs/analyzer/analyze.py
Line 532 in 9782c0b
| metric = "test_accuracies" if "test_accuracies" in sett.aggregate else "test_losses" |
This line overrides the metric provided by the user in all cases, making it redundant.
A proposed fix is to delete this line, or to remove the metric parameter from the function. I personally think the former is more meaningful, since it provides more flexibility to the end user.
Reactions are currently unavailable