diefk {dief} | R Documentation |
This function computes the dief@k metric at a given k (number of answers).
diefk(inputtrace, inputtest, k = -1)
inputtrace |
dataframe with the answer trace. Attributes of the dataframe: test, approach, answer, time. |
inputtest |
string that specifies the specific test to analyze from the answer trace. |
k |
number of answers to compute diefk. By default, the function computes the minimum of the total number of answers produced by the approaches. |
Maribel Acosta
dieft, diefk2, plotAnswerTrace
# Compute dief@k when k is the number of answers produced
# by the approach theat generated the least answers.
diefk(traces, "Q9.sparql")
# Compute dief@k while producing the first k=1000 answers.
diefk(traces, "Q9.sparql", 1000)