Get the best submissions per team.

get_best(
  history,
  metrics = names(metrics),
  test_name = "quiz",
  decreasing = FALSE
)

Arguments

history

list of the submissions history per team as returned by compute_metrics

metrics

character vector. names of the metrics

test_name

string. name of the test set used: "quiz" or "test"

decreasing

logical. Should the sort order be increasing or decreasing? Must be of length 1 or with the same length as metrics.

Value

get_best returns a data.frame where the rows are teams in sorted order of performance. The best submission per team is retained. The sort is based on possibly several metrics in the order given by the metrics argument. In case of ties on the first metric, the second metric is used to break the ties, and so on. Lastly, the date is used in case of ties. The columns are:

team

name of the team

n_submissions

total number of submissions

date

the date of the best submission

file

the file name of the best submission

<metric name>.quiz

the score obtained on the quiz subset

<metric name>.test

the score obtained on the test set

rank

the rank of the team

rank_diff

the rank difference is set to 0 temporarily.