Module view.LayerEditor

Widget that allows the user to define the layers of a neural network.

Functions

LayerEditor.new (fixed_input_output) Constructor.
LayerEditor:get_layers () Gets a table with the number of neurons in each layer.
LayerEditor:init (layer_array) Initializes the values of the editor.
(private) LayerEditor:add_layer () Appends a hidden layer.
(private) LayerEditor:build_gui () Builds the interface.
(private) LayerEditor:clear_layers () Resets the layers to the defaults.
(private) LayerEditor:edit_neuron (path, data) Handles the neuron cell edit event.
(private) LayerEditor:remove_layer () Removes the last hidden layer.


Functions

LayerEditor.new (fixed_input_output)
Constructor.

Parameters

  • fixed_input_output: If the user can't edit the number of input and output neurons

Return value:

New LayerEditor instance
LayerEditor:get_layers ()
Gets a table with the number of neurons in each layer.

Return value:

Array with the number of neurons in each layer
LayerEditor:init (layer_array)
Initializes the values of the editor.

Parameters

  • layer_array: Array with the number of neurons of each layer (without the bias neurons)
(private) LayerEditor:add_layer ()
Appends a hidden layer.
(private) LayerEditor:build_gui ()
Builds the interface.
(private) LayerEditor:clear_layers ()
Resets the layers to the defaults.
(private) LayerEditor:edit_neuron (path, data)
Handles the neuron cell edit event.

Parameters

  • path: TreePath of the current selection, as a string
  • data: The new cell data
(private) LayerEditor:remove_layer ()
Removes the last hidden layer.

Valid XHTML 1.0!