question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ROCAUC needs a few things to be finalized:

  • decision function bug (binary classifier)
  • documentation
  • add to gallery
  • simplify example in docstring and switch to YB data instead of sklearn.datasets
  • add multiclass and binary fixtures from conftest.py (see ClassificationReport
  • remove X, yb, and ym prefering to use above fixtures
  • remove load_binary_data and load_multiclass_data to use above fixtures

Note the bug is as follows:

======================================================================
ERROR: Test ROCAUC with a binary classifier
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/benjamin/Repos/ddl/yellowbrick/tests/test_classifier/test_rocauc.py", line 110, in test_binary_rocauc
    s = visualizer.score(X_test, y_test)
  File "/Users/benjamin/Repos/ddl/yellowbrick/yellowbrick/classifier/rocauc.py", line 171, in score
    self.fpr[i], self.tpr[i], _ = roc_curve(y, y_pred[:,i], pos_label=c)
IndexError: too many indices for array

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
rebeccabilbrocommented, Jul 30, 2018

Looks like setting the random_state for LinearSVC and RandomForestClassifier did the trick!

0reactions
rebeccabilbrocommented, Aug 19, 2018

Closed with #540

Read more comments on GitHub >

github_iconTop Results From Across the Web

ROC and AUC, Clearly Explained! - YouTube
ROC (Receiver Operator Characteristic) graphs and AUC (the area under the curve ), are useful for consolidating the information from a ton of ......
Read more >
Understanding the ROC curve in three visual steps
In this blog, I want to explain how the ROC curve is constructed from scratch in three visual steps. Step 1: Getting classification...
Read more >
A Layman's guide to ROC Curves And AUC - MLWhiz
Unfortunately, many data scientists often just end up seeing the ROC curves and then quoting an AUC (short for the area under the...
Read more >
AUC-ROC Curve in Machine Learning Clearly Explained
Learn about the AUC-ROC curve evaluation metric for binary and multi-class classification problems with practical examples!
Read more >
AUC ROC Curve in Practice with Model Problem Example
AUC ROC stands for the area under a receiver operating characteristic. The area under the ROC curve is one of the most popular...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found