-
Notifications
You must be signed in to change notification settings - Fork 86
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
Change PipelineBase.graph_json()
to return python dictionary
#3463
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3463 +/- ##
=======================================
- Coverage 99.7% 99.7% -0.0%
=======================================
Files 336 336
Lines 33375 33368 -7
=======================================
- Hits 33243 33236 -7
Misses 132 132
Continue to review full report at Codecov.
|
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.
Looks good to me @jeremyliweishih !
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.
Looks great, thanks for taking care of this Jeremy!
evalml/pipelines/pipeline_base.py
Outdated
@@ -440,7 +439,7 @@ def graph_json(self): | |||
"y_edges": [[from_component_name, to_component_name], [from_component_name, to_component_name], ...]} | |||
|
|||
Returns: | |||
dag_json (str): A serialized JSON representation of a DAG structure. | |||
dag_dict (dict): A dictionary of the DAG structure. |
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.
Nit: "A dictionary of the DAG structure" -> "A dictionary representing the DAG structure"
Fixes #3073. Will file another issue to keep track of refactoring for
graph
andgraph_dict
.