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

classification prediction plot colors inconsistent

Open michaellevy opened this issue 6 years ago • 0 comments

They seem to switch if newdata is provided or not:

library(healthcareai)
m <- machine_learn(pima_diabetes, patient_id, outcome = diabetes, 
                   tune = FALSE, models = "xgb")
plot(predict(m))

plot(predict(m, pima_diabetes))

Created on 2018-08-27 by the reprex package (v0.2.0).

michaellevy avatar Aug 27 '18 23:08 michaellevy