Create final ranked_list

create_ranked_list(
  basic,
  random,
  Bayes,
  type,
  score,
  sort_by = "auto",
  metric_function = NULL,
  metric_function_name = "metric_function",
  metric_function_decreasing = TRUE
)

Arguments

basic

A data.frame with ranked list of basic models.

random

A data.frame with ranked list of random search models.

Bayes

A data.frame with ranked list of Bayes Optimization models.

type

A string which determines if Machine Learning task is the `binary_clf` or `regression`.

score

A data frame with metrics values for given models, by `score_models`.

sort_by

String with name of metric to sort by. For `auto` models going to be sorted by `mse` for regression and `f1` for classification.

metric_function

The self-created function. It should look like name(predictions, observed) and return the numeric value. In case of using `metrics` param with value other than `auto` or `all`, is needed to use value `metric_function` in order to see given metric in report. If `sort_by` is equal to `auto` models are sorted by `metric_function`.

metric_function_name

The name of the column with values of param `metric_function`. By default `metric_function_name` is `metric_function`.

metric_function_decreasing

A logical value indicating how metric_function should be sorted. `TRUE` by default.

Value

A data.frame ranked list sorted by default metric.