Skip to content

Make check_outcome() faster #834

Closed
@hfrick

Description

@hfrick

check_outcome() currently checks each element of a vector to be numeric for the regression mode or to be a factor for the classification mode but we only need it to check the vector.

if (!all(map_lgl(y, is.numeric))) {

and

if (!all(map_lgl(y, is.factor))) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions