Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add this missing line: y_test = df_test.churn.values to cell. #3

Closed
pchan2 opened this issue Dec 29, 2023 · 1 comment
Closed

Comments

@pchan2
Copy link

pchan2 commented Dec 29, 2023

Hello, not sure what the preferred way is to flag this bug. Fork vs Issue? Anyway.

  1. Go to session 5
  2. Scroll down to the roc_auc_score cell.
  3. Add y_test = df_test.churn.values on line 3 as per below.
dv, model = train(df_full_train, df_full_train.churn.values, C=1.0)
y_pred = predict(df_test, dv, model)
y_test = df_test.churn.values

auc = roc_auc_score(y_test, y_pred)
auc

Thanks.

@pchan2
Copy link
Author

pchan2 commented Dec 31, 2023

created a PR.

@pchan2 pchan2 closed this as completed Dec 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant