Skip to content

metrics with a target value of zero #243

Closed
@topepo

Description

@topepo

show_best() and others have code that looks like:

  if (maximize) {
    summary_res <- summary_res %>% dplyr::arrange(dplyr::desc(mean))
  } else {
    summary_res <- summary_res %>% dplyr::arrange(mean)
  }

This should be adjusted for cases when there is a target value.

Perhaps we can use maximize = FALSE and arrange by (abs(mean - target)).

@DavisVaughan

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions