get_common_predictions: Find at risk customers

Description Usage Arguments Value Author(s)

View source: R/get_common_predictions.R

Description

Makes predictions using a list of models and returns a vector where each value represents the ratio of models which agree on a specified classification for that observation.

Usage

1
get_common_predictions(models, test_x, threshold, id_col = NULL)

Arguments

models

A list of models of class 'train'

test_x

'data.frame' or 'tibble'. explanitory variables from the test set

threshold

a value between 0 and 1. What ratio of columns do you need to agree your target factor?

id_col

identify your ID column. If there are no IDs, row numbers will be assigned before filtering out uncertain rows.

Value

This function returns a tibble, a single column reporting the ratio of like predictions for dropped clients meeting the prediction threshold

Author(s)

"Chad Schaeffer <[email protected]>",


BYUIDSS/BYUImachine documentation built on Dec. 14, 2018, 2:03 p.m.