For XDF riskchart() fails if predictions has NAs

Issue #15 new
Graham Williams repo owner created an issue

Loading weatherAUS.xdf, build decision tree and Evaluate -> Risk Chart results in

Error in riskchart(crs$pr, crs$xdf.split2$RainTomorrow, crs$xdf.split2$RISK_MM, : Risk charts are for binary classification models only.

Reviewing the value of crs$xdf.split2$RainTomorrow showns that there are NA's. Is this confusing riskchart()? Might be a fix require for riskchart()

Comments (4)

  1. Graham Williams reporter

    Testing does find that riskchart() tests length(unique(ac)) and when ac has NA's that's an extra element. Need to handle NA's.

  2. Log in to comment