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

Dev #110

Merged
merged 8 commits into from
Dec 12, 2015
Merged

Dev #110

merged 8 commits into from
Dec 12, 2015

Conversation

boyinggong
Copy link
Contributor

add confusion matrix and ROC curve

import numpy as np
import matplotlib.pyplot as plt

def plot_roc(logreg_proba, y):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the y input here?

@BenjaminHsieh
Copy link
Contributor

I believe the y are the actual responses (0 or 1), @boyinggong can you make some comments to the function

@boyinggong
Copy link
Contributor Author

Sorry I've updated the comments.

@BenjaminHsieh
Copy link
Contributor

Check #112

@boyinggong
Copy link
Contributor Author

@BenjaminHsieh I've combined the code into the logistic_function.py and logistic.py file. I also update the code to subplot all figures into one. Please check it and let me know if there is any error.

@BenjaminHsieh
Copy link
Contributor

Cool, can you also add a subject label at the top of each ROC graph?

@BenjaminHsieh
Copy link
Contributor

I am going to merge this for now, we can add the subject label later

BenjaminHsieh added a commit that referenced this pull request Dec 12, 2015
Merging for now, add subject label later
@BenjaminHsieh BenjaminHsieh merged commit 122e406 into berkeley-stat159:dev Dec 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants