diefk: Compute metric dief@k

Description Usage Arguments Author(s) See Also Examples

View source: R/dief.R

Description

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

Usage

1
diefk(inputtrace, inputtest, k = -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.

k

number of answers to compute diefk. By default, the function computes the minimum of the total number of answers produced by the approaches.

Author(s)

Maribel Acosta

See Also

dieft, diefk2, plotAnswerTrace

Examples

1
2
3
4
5
# 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)

farahkarim/dief-2 documentation built on May 23, 2019, 1:10 p.m.