-
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
Documentation Pipeline API Fixes #537
Conversation
Codecov Report
@@ Coverage Diff @@
## master #537 +/- ##
=======================================
Coverage 98.73% 98.73%
=======================================
Files 115 115
Lines 4205 4205
=======================================
Hits 4152 4152
Misses 53 53
Continue to review full report at Codecov.
|
Good news is I've been able to get past all the errors and warnings and surfaced class variables for pipelines and components! Heres an example: Bad news is... somehow I don't see the changes on RTD. I wiped the build and am rebuilding my branch on RTD to see if that fixes anything. We should sync up on this before release! Might be a case of: readthedocs/readthedocs.org#208 |
RTD looks good! 😄 But we may want to put up an issue removing generated files before builds in RTD. This can be done in |
@jeremyliweishih amazing!!! Will review and let's get this merged :) |
:nosignatures: | ||
|
||
get_pipelines | ||
list_model_families |
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.
So we have to list out whatever utils we want to show up in the doc here?
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.
Yes! In general if new modules or methods (unless the class or module is already in the API reference) are introduced we need to add them here -something we should look out more when reviewing (something I keep forgetting!!)
LogisticRegressionPipeline | ||
RFRegressionPipeline | ||
CatBoostRegressionPipeline |
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.
Thank you! This will fix #541 , right?
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.
yup!
|
||
.. currentmodule:: evalml.pipelines.components |
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.
Awesome. This line will fix all the ModelFamily
warnings in the docs
|
||
|
||
.. currentmodule:: evalml.model_family | ||
|
||
Model Family | ||
=========== | ||
============ |
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.
Was this necessary? I ask because if so, we should figure out if there's a linter for these files...
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.
Yes! It doesn't work properly unless the # of =
is the same length as the text haha..
.. autoattribute:: model_family | ||
.. autoattribute:: hyperparameters | ||
.. autoattribute:: custom_hyperparameters | ||
{% endblock %} |
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.
This is great. I agree with you that it would be nice to find a way to avoid having to list these things out here in the future. But for now, it gets things to show up in the docs, so I'm a fan. 👍
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.
I'm sure theres some fancy python with sphinx thing we can do in conf.py
we can do in the future! Or just more features of jinja/sphinx that I'm not aware of yet.
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.
Left a few minor comments, but nothing really blocking except the unit test fix at the bottom. Great work on this!!! 🛳 😁
@jeremyliweishih I added to the PR description, feel free to edit as needed |
Fixes #385, #538 #541
Changes
PipelineBase
autoattribute::
to list out class-level fields, and then ignore those fields in thefor
loop which tries to render each attribute.Future work: