Learn R Programming

dief (version 1.2)

diefk2: Compute dief@k at a portion of the answer

Description

This function computes the dief@k metric at a given kp (portion of answers).

Usage

diefk2(inputtrace, inputtest, kp = -1)

Arguments

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.

See Also

dieft, diefk, plotAnswerTrace

Examples

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab