FEDOT icon indicating copy to clipboard operation
FEDOT copied to clipboard

`Graph` visualizations improvement

Open MorrisNein opened this issue 2 years ago • 2 comments

  • Refactored default graph representations by matplotlib + networkx.
  • Added 'pyvis' visualization engine for interactive graph views via html.
  • Added 'graphviz' visualization engine (requires Graphviz and pygraphviz).
  • Matplotlib visualization supports nodes_size and edges_curvature arguments.
  • All visuals support nodes_color argument.

'matplotlib' engine (default view) image

image

image

'graphviz' engine

image

image

image

'pyvis' engine (all nodes are moveable by drag-and-drop after rendering)

image

image

image

In synergy with history visualization image

Large chain in pyvis image

pyvis shows the selected node's params image

nodes_color='black' imageimage

MorrisNein avatar Jul 29 '22 13:07 MorrisNein

Hello @MorrisNein! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers:

Comment last updated at 2022-08-16 12:04:18 UTC

pep8speaks avatar Jul 29 '22 13:07 pep8speaks

Codecov Report

Merging #798 (a9ceb55) into master (74823a9) will increase coverage by 0.17%. The diff coverage is 71.87%.

@@            Coverage Diff             @@
##           master     #798      +/-   ##
==========================================
+ Coverage   87.37%   87.55%   +0.17%     
==========================================
  Files         184      184              
  Lines       12904    13009     +105     
==========================================
+ Hits        11275    11390     +115     
+ Misses       1629     1619      -10     
Impacted Files Coverage Δ
fedot/core/visualisation/opt_viz.py 53.37% <57.14%> (-0.08%) :arrow_down:
fedot/core/visualisation/graph_viz.py 73.52% <71.87%> (+27.06%) :arrow_up:
fedot/core/dag/graph.py 97.22% <100.00%> (+1.44%) :arrow_up:
fedot/core/optimisers/graph.py 96.15% <100.00%> (+0.64%) :arrow_up:
fedot/core/optimisers/opt_history.py 76.19% <100.00%> (ø)
fedot/core/pipelines/tuning/hyperparams.py 91.83% <0.00%> (-2.05%) :arrow_down:
...implementations/models/ts_implementations/naive.py 93.47% <0.00%> (-1.09%) :arrow_down:
fedot/core/pipelines/verification_rules.py 95.65% <0.00%> (-0.55%) :arrow_down:
...entations/models/ts_implementations/statsmodels.py 94.44% <0.00%> (+0.55%) :arrow_up:
...edot/core/repository/operation_types_repository.py 89.75% <0.00%> (+0.81%) :arrow_up:
... and 4 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

codecov[bot] avatar Jul 29 '22 13:07 codecov[bot]

'matplotlib' engine (default view) image

image

image

'graphviz' engine

image

image

image

'pyvis' engine (all nodes are moveable by drag-and-drop after rendering)

image

image

image

In synergy with history visualization image

Large chain in pyvis image

pyvis shows the selected node's params image

nodes_color='black' imageimage

MorrisNein avatar Aug 16 '22 12:08 MorrisNein