Open lucaszago opened 4 years ago
I`m new in r, and I was not really sure which place I could post my doubt:
I was trying to do a roc curve for 2 models:
knn_res %>% unnest(.predictions) %>% mutate(model ="kknn") %>% #adicionando uma coluna bind_rows(tree_res %>% unnest(.predictions) %>% mutate(model ="rpart")) %>% group_by(model) %>% roc_curve(new_renda, .pred_abaixo) %>% autoplot()
And I received this error: Error in roc.default(response = integer(0), predictor = numeric(0), levels = c("acima", : No control observation.
Could you help me how to solve it?
Thanks for giving us feedback on the book. Please follow these guidelines:
Comments or questions on the content
Please tell us where exactly the issue is (e.g. chapter, section, figure number, etc.) and, whenever possible, copy/paste the text in question using
>
in the issue. Also, please state the version of the book by referencing the date on the book's first page (under the title and authors).See this issue as an example: