Module view.TypeEditor
Widget to edit the type of a neural network.
Functions
TypeEditor.new () | Constructor. |
TypeEditor:get_type () | Gets the selected type ("standard", "shortcut" or "sparse") and the connection rate (scaled to FANN, from 0 to 1). |
TypeEditor:init (network_type, connection_rate) | Initializes the values of the editor. |
(private) TypeEditor:build_gui () | Buils the interface. |
(private) TypeEditor:type_selected () | Shows the rate editor only when the type selected is "sparse". |
Functions
- TypeEditor.new ()
-
Constructor.
Return value:
New TypeEditor instance - TypeEditor:get_type ()
-
Gets the selected type ("standard", "shortcut" or "sparse") and the connection rate (scaled to FANN, from 0 to 1).
Return value:
Network type and the connection rate - TypeEditor:init (network_type, connection_rate)
-
Initializes the values of the editor.
Parameters
- network_type: Network type to be selected
- connection_rate: Connection rate to be setted
- (private) TypeEditor:build_gui ()
- Buils the interface.
- (private) TypeEditor:type_selected ()
- Shows the rate editor only when the type selected is "sparse".