evaluation: Evaluate parameters

Description Usage Arguments Value

Description

Evaluate a set of parameters for a given method with a given metric.

Usage

1
2
evaluation(data_list, method, grid, grid_row, metric = NULL,
  true_partition = NULL, return_metric = TRUE)

Arguments

data_list

a list of data matrices with continuous data of format samples x features (with the same number of samples).

method

a string being the name of the built-in method to be used or a 'method list' with the same format as the built-in ones.

grid

the grid generated in tuning().

grid_row

the row indicating the set of parameters to be tested in the grid

metric

a string being the name of the built-in metric to be used or a 'metric list' with the same format as the built-in ones. If the chosen metric is internal, be sure to choose a metric corresponding to the kind of data returned by the chosen method.

true_partition

a factor or integer vector being a classification of the patients. It will be used with external metrics.

return_metric

logical. To return the result of the method instead of the value of the metric.

Value

the value of the metric or the result of the method if return_metric is TRUE


agapow/subtypr documentation built on May 5, 2019, 1:33 a.m.