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

Change PipelineBase.graph_json() to return python dictionary #3463

Merged
merged 10 commits into from
Apr 14, 2022

Conversation

jeremyliweishih
Copy link
Collaborator

@jeremyliweishih jeremyliweishih commented Apr 13, 2022

Fixes #3073. Will file another issue to keep track of refactoring for graph and graph_dict.

@codecov
Copy link

codecov bot commented Apr 13, 2022

Codecov Report

Merging #3463 (60a5dda) into main (6829737) will decrease coverage by 0.1%.
The diff coverage is 100.0%.

@@           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             
Impacted Files Coverage Δ
evalml/pipelines/pipeline_base.py 98.5% <100.0%> (-<0.1%) ⬇️
...ts/automl_tests/test_automl_iterative_algorithm.py 100.0% <100.0%> (ø)
evalml/tests/pipeline_tests/test_graphs.py 100.0% <100.0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6829737...60a5dda. Read the comment docs.

@jeremyliweishih jeremyliweishih marked this pull request as ready for review April 13, 2022 18:09
Copy link
Contributor

@freddyaboulton freddyaboulton left a 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 !

evalml/pipelines/pipeline_base.py Show resolved Hide resolved
Copy link
Contributor

@eccabay eccabay left a 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!

@@ -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.
Copy link
Contributor

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"

@jeremyliweishih jeremyliweishih enabled auto-merge (squash) April 14, 2022 17:27
@jeremyliweishih jeremyliweishih merged commit 50a08df into main Apr 14, 2022
@chukarsten chukarsten mentioned this pull request Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pipeline graphs: refactor to use data generation vs viz methods
3 participants