I have a list: scores_with_candidates=[score1,score2,candidate]
where score1 is the R^2 value and score2 is the MSE and candidate is a string name. Essentially what I want to do is receive a sorted list maybe using scores_with_candidates.sort()
in which it sorts the candidates from worst to best based on where both score1 is maximized and score2 is minimized so I would want the candidate with both the highest score1 and lowest score2 at the bottom of the list so that I can retrieve it by using the following command:
best_score1, best_score2, best_candidate = scores_with_candidates.pop()