-
Notifications
You must be signed in to change notification settings - Fork 87
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
Move ROC and confusion matrix to pipeline plot utils (#696) #704
Conversation
Codecov Report
@@ Coverage Diff @@
## master #704 +/- ##
==========================================
+ Coverage 99.09% 99.19% +0.10%
==========================================
Files 139 140 +1
Lines 4954 4952 -2
==========================================
+ Hits 4909 4912 +3
+ Misses 45 40 -5
Continue to review full report at Codecov.
|
I rekicked the RTD job for this branch again: I also rekicked All passed with flying colors. I also followed the instructions on #586 to use the RTD docker container to build the docs locally. That succeeded without any issues. I was able to view the fresh html files and they looked fine. |
* Impl * Rename file * Update test * Forgot to add the new file * Fix imports and lint * Fix test * Changelog * Fix api docs * Add missing markdown descr. Delete some ipynb elements which were failing validation * Update docstrings * Delete MSLE for codecov * Increase test coverage for codecov * Disallow unsupported options for normalize_confusion_matrix * Add test coverage for get_objective w\ nonetype (for codecov) * Update docstring * Remove unnecessary raise in test mock * Update test. * Update docstring
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hope it works this time!
9a64d36
to
87f2f2e
Compare
I hope so too! I just rebased. I'll watch RTD pass once more, and then merge. |
The RTD build passed and the docs look good. Merging. |
Preface: this is a clone of PR #696 -- I merged that to master this morning, but ran into RTD timeouts (described in #702). Reset master and now trying again.
Fix #639 #365 #392 #427 #608 #610 #620
Prior to #346 , plot data functions like ROC and confusion matrix were treated as objectives. #346 and follow-on work separated them from objectives, and made it so that these plot data functions aren't precomputed during automl. We then filed epic #639 to figure out where to put the code for plot data functions like ROC and confusion matrix.
This PR has the following changes:
evalml/pipelines/plot_utils.py
as standalone functions which take actual vs predictedplot_metrics
input from automl, and deleteplot_data
field from automl results, because those were made unnecessary when we took ROC/confusion out of automlgen_utils
methods to the API docs (likeimport_or_raise
)MSLE
objective for codecov -- it was disabled with a commentFuture work:
ClassificationPipeline.confusion_matrix
,ClassificationPipeline.plot_confusion_matrix
,BinaryClassificationPipeline.roc_curve
,BinaryClassificationPipeline.plot_roc_curve
. This would make it convenient to get plot data directly from pipelines