|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.openai.ai.nn.training.TrainingSet
Data to train a neuralnet
Constructor Summary | |
TrainingSet()
|
Method Summary | |
void |
addElement()
Adds a new default training element to the system. |
void |
addElement(TrainingElement element)
Adds a new training element to the system. |
void |
addElementAt(int index)
Insert a element |
void |
addElementAt(int index,
TrainingElement element)
Insert a element |
void |
addInputCategory(java.lang.String name)
Adds a new Inputcategory. |
void |
addOutputCategory(java.lang.String name)
Adds a new Outputcategory. |
java.util.Vector |
getElements()
Returns a Vector of TrainingElements. |
java.util.Vector |
getInputCategories()
Returns a vector containing the names of the categories for the input data. |
TrainingElement |
getNewElement()
Returns a new TrainingElement with all columns set to 0 |
java.util.Vector |
getOutputCategories()
Returns a vector containing the names of the categories for the output data. |
boolean |
isEmpty()
Returns whether this training set contains any elements. |
void |
remove(int index)
Delete a element |
void |
removeInputCategory()
Removes the last Inputcategory. |
void |
removeOutputCategory()
Removes the last Outputcategory. |
void |
setElements(java.util.Vector elements)
Sets a Vector of TrainingElements. |
void |
setInputCategories(java.util.Vector inputCategories)
Sets the categories for thhe input data. |
void |
setOutputCategories(java.util.Vector outputCategories)
Sets the categories for the output data.. |
int |
size()
Returns the number of elements in this set. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TrainingSet()
Method Detail |
public final void addElement(TrainingElement element)
element
- The training elements to add to the set/public final void addElement()
public final void addElementAt(int index, TrainingElement element)
index
- The element will be inserted at the given indexpublic final void addElementAt(int index)
index
- The element will be inserted at the given indexpublic final java.util.Vector getElements()
public final void setElements(java.util.Vector elements)
public final java.util.Vector getInputCategories()
public final void setInputCategories(java.util.Vector inputCategories)
public final java.util.Vector getOutputCategories()
public final void setOutputCategories(java.util.Vector outputCategories)
public final boolean isEmpty()
public final int size()
public void remove(int index)
index
- Index of the element to be deletedpublic TrainingElement getNewElement()
public void addInputCategory(java.lang.String name)
public void removeInputCategory()
public void addOutputCategory(java.lang.String name)
public void removeOutputCategory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |