| get_cutoffs | R Documentation | 
Get cutoff values for group predictions
get_cutoffs(x)
| x | Data frame from  | 
A message is printed about the thresholds. If outcome_groups
were defined the return value is a single numeric value, the threshold used
to separate predicted probabilities into outcome groups. If
risk_groups were defined the return value is a data frame with one
column giving the group names and another column giving the minimum
predicted probability for an observation to be in that group.
machine_learn(pima_diabetes[1:20, ], patient_id, outcome = diabetes,
              models = "xgb", tune = FALSE) %>%
  predict(risk_groups = 5) %>%
  get_cutoffs()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.