gov.sandia.cognition.learning.algorithm.perceptron
Class OnlineShiftingPerceptron.LinearResult

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.learning.function.categorization.AbstractBinaryCategorizer<InputType>
          extended by gov.sandia.cognition.learning.function.categorization.AbstractDiscriminantBinaryCategorizer<Vectorizable>
              extended by gov.sandia.cognition.learning.function.categorization.LinearBinaryCategorizer
                  extended by gov.sandia.cognition.learning.algorithm.perceptron.OnlineShiftingPerceptron.LinearResult
All Implemented Interfaces:
Evaluator<Vectorizable,Boolean>, BinaryCategorizer<Vectorizable>, Categorizer<Vectorizable,Boolean>, DiscriminantBinaryCategorizer<Vectorizable>, DiscriminantCategorizer<Vectorizable,Boolean,Double>, ThresholdBinaryCategorizer<Vectorizable>, VectorInputEvaluator<Vectorizable,Boolean>, CloneableSerializable, Serializable, Cloneable
Enclosing class:
OnlineShiftingPerceptron

public static class OnlineShiftingPerceptron.LinearResult
extends LinearBinaryCategorizer

This is the result learned by the shifting perceptron.

See Also:
Serialized Form

Field Summary
protected  long errorCount
          The number of errors made by the categorizer so far.
 
Fields inherited from class gov.sandia.cognition.learning.function.categorization.LinearBinaryCategorizer
DEFAULT_BIAS
 
Fields inherited from class gov.sandia.cognition.learning.function.categorization.AbstractBinaryCategorizer
BINARY_CATEGORIES
 
Constructor Summary
OnlineShiftingPerceptron.LinearResult()
          Creates a new, empty LinearResult.
 
Method Summary
 long getErrorCount()
          Gets the error count.
 void setErrorCount(long errorCount)
          Sets the error count.
 
Methods inherited from class gov.sandia.cognition.learning.function.categorization.LinearBinaryCategorizer
clone, evaluateAsDouble, evaluateAsDouble, getBias, getInputDimensionality, getThreshold, getWeights, setBias, setThreshold, setWeights, toString
 
Methods inherited from class gov.sandia.cognition.learning.function.categorization.AbstractDiscriminantBinaryCategorizer
evaluate, evaluateWithDiscriminant
 
Methods inherited from class gov.sandia.cognition.learning.function.categorization.AbstractBinaryCategorizer
getCategories
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gov.sandia.cognition.learning.function.categorization.DiscriminantCategorizer
evaluateWithDiscriminant
 
Methods inherited from interface gov.sandia.cognition.learning.function.categorization.Categorizer
getCategories
 
Methods inherited from interface gov.sandia.cognition.evaluator.Evaluator
evaluate
 

Field Detail

errorCount

protected long errorCount
The number of errors made by the categorizer so far.

Constructor Detail

OnlineShiftingPerceptron.LinearResult

public OnlineShiftingPerceptron.LinearResult()
Creates a new, empty LinearResult.

Method Detail

getErrorCount

public long getErrorCount()
Gets the error count.

Returns:
The error count.

setErrorCount

public void setErrorCount(long errorCount)
Sets the error count.

Parameters:
errorCount - The error count.