Skip to content

Clarify how to pass metrics to score() #1003

@jamesmbaazam

Description

@jamesmbaazam

I was doing something like example_sample_continuous |> score(metrics = list("crps" = crps_sample()) instead of example_sample_continuous |> score(metrics = list("crps" = crps_sample) and getting the error r "Error in assert_numeric(observed, min.len = 1) : argument "observed" is missing, with no default". The main difference here is the () at the end of the first invocation. That's because the helpfile mentioned you need to pass a function. I think this can be clarified by adding an example in score(). It took me a lot of digging in the code to clarify this.

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