Module view.DataManager

Dialog that handles a list of training datas.

Functions

DataManager.new (parent) Constructor.
DataManager:run (ctrl, project) Runs the data manager.
DataManager:scale_data () Scales the selected data from the list.
(private) DataManager:add_data () Adds a new empty data to the list.
(private) DataManager:add_helper (data) To ease the manipulation of the data (and make it more efficient), the data reference is copied to an aux array, manipulated there, and in the end it is copied to the project.
(private) DataManager:build_gui (parent) Builds the interface.
(private) DataManager:cell_edited (path, data) Handles a cell edition.
(private) DataManager:clear () Clears the manager.
(private) DataManager:copy_data () Copies the selected data from the list.
(private) DataManager:create_empty_data () Creates a new, empty data
(private) DataManager:edit_data () Edits the selected data from the list.
(private) DataManager:import_data () Imports a data from a file.
(private) DataManager:prepare (project, ctrl) Prepates the data manager.
(private) DataManager:remove_data () Removes the selected data from the list.
(private) DataManager:run_copy_data () Copies the selected data from the list into the NetworkRunner dialog.
(private) DataManager:save_data (project) Saves the loaded data back to the project (just copies the reference).
(private) DataManager:selection_changed () Updates the buttons based on the current selection.
(private) DataManager:shuffle_data () Shuffles the selected data from the list.


Functions

DataManager.new (parent)
Constructor.

Parameters

  • parent: Parent window
DataManager:run (ctrl, project)
Runs the data manager.

Parameters

  • ctrl: Main controller to use
  • project: Project that will have the training data handled.

Return value:

true if the data changed
DataManager:scale_data ()
Scales the selected data from the list.
(private) DataManager:add_data ()
Adds a new empty data to the list.
(private) DataManager:add_helper (data)
To ease the manipulation of the data (and make it more efficient), the data reference is copied to an aux array, manipulated there, and in the end it is copied to the project.

Parameters

  • data:
(private) DataManager:build_gui (parent)
Builds the interface.

Parameters

  • parent:
(private) DataManager:cell_edited (path, data)
Handles a cell edition.

Parameters

  • path:
  • data:
(private) DataManager:clear ()
Clears the manager.
(private) DataManager:copy_data ()
Copies the selected data from the list.
(private) DataManager:create_empty_data ()
Creates a new, empty data
(private) DataManager:edit_data ()
Edits the selected data from the list.
(private) DataManager:import_data ()
Imports a data from a file.
(private) DataManager:prepare (project, ctrl)
Prepates the data manager.

Parameters

  • project:
  • ctrl:
(private) DataManager:remove_data ()
Removes the selected data from the list.
(private) DataManager:run_copy_data ()
Copies the selected data from the list into the NetworkRunner dialog.
(private) DataManager:save_data (project)
Saves the loaded data back to the project (just copies the reference).

Parameters

  • project: Project to receive the data
(private) DataManager:selection_changed ()
Updates the buttons based on the current selection.
(private) DataManager:shuffle_data ()
Shuffles the selected data from the list.

Valid XHTML 1.0!