healthcareai-r icon indicating copy to clipboard operation
healthcareai-r copied to clipboard

Handle logical outcomes

Open michaellevy opened this issue 7 years ago • 1 comments

and outcomes with "TRUE" and "FALSE" entries as character or factor. May require a new custom recipe step.

michaellevy avatar Feb 01 '18 19:02 michaellevy

pima_diabetes <-pima_diabetes %>% 
  dplyr::mutate(diabetes = dplyr::case_when(
    diabetes == "Y" ~ TRUE,
    diabetes == "N" ~ FALSE))
machine_learn(pima_diabetes, patient_id, outcome = diabetes)

michaellevy avatar May 18 '18 16:05 michaellevy