Closed willwheelera closed 5 months ago
error[max(error)] was intended to return the maximum error in the dictionary error, however, max(error) returns the maximum of the keys themselves, not the key of the maximum value. So this is changed to max(error.values()).
error[max(error)]
error
max(error)
max(error.values())
error[max(error)]
was intended to return the maximum error in the dictionaryerror
, however,max(error)
returns the maximum of the keys themselves, not the key of the maximum value. So this is changed tomax(error.values())
.