1
$\begingroup$

So in Mathematica, neural network objects appear like this: enter image description here

This is rather boring, but if you click on the plus sign, it expands into a better graph: enter image description here

Which is much better. However, if you use Export[NotebookDirectory[]<>"graph.pdf",NetGraph[LinearLayer[]]], Only the first picture will get exported. So how do I export the second image? Direct screenshot is not an option because I need a vectorized graph.

$\endgroup$
2
  • 2
    $\begingroup$ Look at Export[NotebookDirectory[] <> "graph.pdf", Information[net, "SummaryGraphic"]] You can also use "FullSummaryGraphic" $\endgroup$
    – Bob Hanlon
    Commented Jan 24, 2022 at 16:16
  • $\begingroup$ @BobHanlon It works! thanks $\endgroup$
    – t-smart
    Commented Jan 25, 2022 at 5:58

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.