Package Bio :: Package NeuralNetwork :: Module Training :: Class ExampleManager
[hide private]
[frames] | no frames]

Class ExampleManager

source code

object --+
         |
        ExampleManager

Manage a grouping of Training Examples.

This is meant to make it easy to split a bunch of training examples into three types of data:

Instance Methods [hide private]
 
__init__(self, training_percent=0.4, validation_percent=0.4)
Initialize the manager with the training examples.
source code
 
add_examples(self, training_examples)
Add a set of training examples to the manager.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, training_percent=0.4, validation_percent=0.4)
(Constructor)

source code 

Initialize the manager with the training examples.

Arguments:
  • training_percent - The percentage of the training examples that should be used for training the network.
  • validation_percent - Percent of training examples for validating a network during training.
Attributes:
  • train_examples - A randomly chosen set of examples for training purposes.
  • valdiation_examples - Randomly chosesn set of examples for use in validation of a network during training.
  • test_examples - Examples for training purposes.
Overrides: object.__init__

add_examples(self, training_examples)

source code 

Add a set of training examples to the manager.

Arguments:
  • training_examples - A list of TrainingExamples to manage.