Learn R Programming

rchallenge (version 1.1.1)

get_best: Get the best submissions per team and per metric.

Description

Get the best submissions per team and per metric.

Usage

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

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"

Value

get_best returns a named list with one member per metric. Each memebr is a data.frame where the rows are teams in decreasing order of performance and 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
.quiz
the score obtained on the quiz subset
.test
the score obtained on the test set
rank
the rank of the team
rank_diff
the rank difference is set to 0 temporarily.