get_performance: Extract model performance

Description Usage Arguments Value Author(s) See Also Examples

Description

Generates tibble of performance measures by model, measure and arranged by score

Usage

1
get_performance(models, test_x, test_y, format = "long")

Arguments

models

List of models of class train

test_x

'data.frame' or 'tibble' of explanitory variables

test_y

vector of target variable

format

"long" for long format (default), or "wide" for wide format

Value

This function returns a tibble of model performance including columns:

When format = "wide", the function will return a tibble including columns:

Author(s)

"Dallin Webb <dallinwebb@byui.edu>"

See Also

extract_measures

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# Long format
p <- get_performance(models_list, test_x, test_y)
p
p %>% filter(measure == "F1")

# Wide format
get_performance(models_list, test_x, test_y, format = "wide")

## End(Not run)

BYUIDSS/BYUImachine documentation built on May 3, 2019, 5:22 p.m.