Module view.GraphViewer
Window that allows the user to view the graph of a neural network.
Functions
GraphViewer.new (parent) | Constructor. |
GraphViewer:project_selected (event, project) | Updates the interface if the project changed. |
GraphViewer:run (network) | Runs the dialog. |
(private) GraphViewer:build_gui (parent) | Builds the interface. |
(private) GraphViewer:calc_size () | |
(private) GraphViewer:clear () | |
(private) GraphViewer:close () | |
(private) GraphViewer:draw_graph (cr) | |
(private) GraphViewer:expose (event) | |
(private) GraphViewer:prepare (network) | |
(private) GraphViewer:save () | Saves the current graph to a file. |
(private) GraphViewer:set_canvas_size () | |
(private) GraphViewer:show_bias_changed () | |
(private) GraphViewer:spacing_changed () | |
(private) GraphViewer:zoom_changed () |
Functions
- GraphViewer.new (parent)
-
Constructor.
Parameters
- parent: Parent window
Return value:
New instance of GraphViewer - GraphViewer:project_selected (event, project)
-
Updates the interface if the project changed.
Parameters
- event: Event that triggered this handler
- project: The current project
- GraphViewer:run (network)
-
Runs the dialog.
Parameters
- network: Network that will be used to draw the graph
- (private) GraphViewer:build_gui (parent)
-
Builds the interface.
Parameters
- parent: Parent window
- (private) GraphViewer:calc_size ()
- (private) GraphViewer:clear ()
- (private) GraphViewer:close ()
- (private) GraphViewer:draw_graph (cr)
-
Parameters
- cr:
- (private) GraphViewer:expose (event)
-
Parameters
- event:
- (private) GraphViewer:prepare (network)
-
Parameters
- network:
- (private) GraphViewer:save ()
- Saves the current graph to a file.
- (private) GraphViewer:set_canvas_size ()
- (private) GraphViewer:show_bias_changed ()
- (private) GraphViewer:spacing_changed ()
- (private) GraphViewer:zoom_changed ()