Public Member Functions | |
Node (int type) | |
void | setInput (Double inputValue) |
void | calculateOutput () |
double | getSum () |
double | getOutput () |
Public Attributes | |
ArrayList< NodeWeightPair > | parents =null |
Class for internal organization of a Neural Network. There are 5 types of nodes. Check the type attribute of the node for details
|
inline |
Constructor of Node. The type of node is constructed as 0=input,1=biasToHidden,2=hidden,3=biasToOutput,4=Output
|
inline |
Calculate the output of a sigmoid activate function. You can assume that outputs of the parent nodes have already been calculated You can get this value by using getOutput()
|
inline |
Return the output of a node. same as input for input nodes, 1.00 for bias nodes.
|
inline |
Any one uses this?
|
inline |
Set the input value of this node. Only work if the node is input type (type = 0)
inputValue |
ArrayList<NodeWeightPair> Node.parents =null |
Array List that will contain the parents (including the bias node) with weights if applicable