|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbodhidharma.classifiers.feedforward_neural_networks.OutputNode
public class OutputNode
Objects of this class represent the outputs of a neural network. OutputNodes can update themselves during learning. Adjustable learning rates and momentums are permitted.The sigmoidal activation funciton is used.
Field Summary | |
---|---|
protected double |
current_value
|
protected double |
error_signal
|
protected double[] |
input_values
|
double |
learning_rate
The learning rate of the node used during learning |
double |
momentum
The momentum co-efficient used during learning |
protected int |
number_inputs
|
protected double[] |
previous_update
|
protected double[] |
weights
|
Constructor Summary | |
---|---|
OutputNode(double n,
double alpha,
int inputs)
Instantiate the OutputNode with the given parameters. |
Method Summary | |
---|---|
void |
calculate_value()
Perform calculations to set the current value of the node based on its current inputs and weights |
double |
get_current_value()
Get the current value of the node |
double |
get_error_signal_times_weight(int link_index)
Returns the error signal times the weight of the link back to the given hidden node Is used by a hidden node to calculate its own error signal update_weights should be called first on each iteration to ensure that error_signal is updated |
double[] |
get_weight_values()
Return the weights |
java.lang.String |
get_weights()
Return a vertical list of weights |
java.lang.String |
output_values()
Returns the current inputs, weights and values of the node Used during debugging |
void |
set_input(int link,
double input)
Set the current input value of the appropriate link to the given input. |
void |
set_weight(int link,
double input)
Set the current weight of the appropriate link to the given input. |
void |
update_weights(double desired_output)
Update the weights of the node during a training iteration |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public double learning_rate
public double momentum
protected int number_inputs
protected double[] input_values
protected double[] weights
protected double current_value
protected double error_signal
protected double[] previous_update
Constructor Detail |
---|
public OutputNode(double n, double alpha, int inputs)
Method Detail |
---|
public void set_input(int link, double input)
public void set_weight(int link, double input)
public double get_current_value()
public double[] get_weight_values()
public java.lang.String get_weights()
public void calculate_value()
public void update_weights(double desired_output)
public double get_error_signal_times_weight(int link_index)
public java.lang.String output_values()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |