SmithCollege-SDS / tidy-islr

tidyverse versions of ISLR labs
23 stars 24 forks source link

Issues with confusion matrices #7

Closed jcrouser closed 8 years ago

jcrouser commented 8 years ago

Lines 79 - 83 of Lab 4 currently reads:

glm_pred = cbind(Smarket, glm_pred)

glm_pred %>% 
  group_by(Direction) %>% 
  count(pred)

This produces a table of the predictions, but not a confusion matrix (as references in the text that follows).