Description Arguments Value Note Author(s) See Also Examples
The function
1 | race.wrapper(candidate,task,data)
|
is to be provided
by the user. It's definition has to be given (together with the one
of race.info
) in a file, and the name of such file has to be
passed as first argument to the function race
.
candidate |
The candidate to be evaluated: a number between 1 and
|
task |
The task on which to the candidate should be evaluated: a
number between 1 and |
data |
It is the object of type |
A number: the result obtained by the given candidate at the given
task. If no.subtasks>1
(see race.info
), the
function is expected to return a vector of length equal to
no.subtasks
where the component k
of such vector is the
result obtained by the given candidate on the k
-th subtask
composing the given task.
Please notice that race
is a minimization algorithm:
it selects the candidate that obtains the smallest results on
the various tasks considered.
Mauro Birattari
1 2 3 4 5 6 | # Please have a look at the function `race.wrapper'
# defined in the file `example-wrapper.R':
local({
source(file.path(system.file(package="race"),
"examples","example-wrapper.R"),local=TRUE);
print(race.wrapper)})
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.