The create_example_func function creates an example for the create_usrtool function.

create_example_func()

Value

A function as an example for create_usrtool

See also

create_usrtool requires the same format. create_testset for testset.

Examples

## Create a function
func <- create_example_func()
func
#> function (single_testset) 
#> {
#>     scores <- single_testset$get_scores()
#>     list(x = seq(0, 1, 1/length(scores)), y = seq(0, 1, 1/length(scores)), 
#>         auc = 0.5)
#> }
#> <bytecode: 0x555a0bbb6530>
#> <environment: 0x555a0bbb5ce0>