diefk {dief} R Documentation

## Compute metric dief@k

### Description

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

### Usage

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.

Maribel Acosta

### Examples

# 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)


[Package dief version 1.2 Index]