diefk2 {dief} | R Documentation |
This function computes the dief@k metric at a given kp (portion of answers).
diefk2(inputtrace, inputtest, kp = -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. |
kp |
portion of answers to compute diefk (between 0.0 and 1.0). By default and when kp=1.0, this function behaves the same as diefk. It computes the kp portion of of minimum of of number of answers produced by the approaches. |
Maribel Acosta
dieft, diefk, plotAnswerTrace
# Compute dief@k when the approaches produced 25% of the answers w.r.t.
# the approach that produced the least answers.
diefk2(traces, "Q9.sparql", 0.25)