com.rapidminer.operator.learner.functions.neuralnet
Class OutputNode

java.lang.Object
  extended by com.rapidminer.operator.learner.functions.neuralnet.Node
      extended by com.rapidminer.operator.learner.functions.neuralnet.OutputNode

public class OutputNode
extends Node

This node represents the output node(s) of a neural network. It uses a sigmoid activation function for classification tasks (one node for each class) and a linear function for regression tasks.

Author:
Ingo Mierswa

Field Summary
 
Fields inherited from class com.rapidminer.operator.learner.functions.neuralnet.Node
currentError, currentValue, HIDDEN, INPUT, inputNodeOutputIndices, inputNodes, OUTPUT, outputNodeInputIndices, outputNodes
 
Constructor Summary
OutputNode(java.lang.String nodeName, Attribute label, double labelRange, double labelBase)
           
 
Method Summary
 double calculateError(boolean shouldCalculate, Example example)
          Calculates the error for this node.
 double calculateValue(boolean shouldCalculate, Example example)
          Calculates the output for this node.
 int getClassIndex()
           
 void setClassIndex(int classIndex)
           
 
Methods inherited from class com.rapidminer.operator.learner.functions.neuralnet.Node
areWeightsUpdated, connect, connectInput, connectOutput, disconnect, disconnectInput, disconnectOutput, getInputNodeOutputIndices, getInputNodes, getLayerIndex, getNodeName, getNodeType, getOutputNodeInputIndices, getOutputNodes, getWeight, reset, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputNode

public OutputNode(java.lang.String nodeName,
                  Attribute label,
                  double labelRange,
                  double labelBase)
Method Detail

setClassIndex

public void setClassIndex(int classIndex)

getClassIndex

public int getClassIndex()

calculateValue

public double calculateValue(boolean shouldCalculate,
                             Example example)
Description copied from class: Node
Calculates the output for this node.

Specified by:
calculateValue in class Node

calculateError

public double calculateError(boolean shouldCalculate,
                             Example example)
Description copied from class: Node
Calculates the error for this node.

Specified by:
calculateError in class Node


Copyright © 2001-2009 by Rapid-I