LBJ2.learn
Class Softmax

java.lang.Object
  extended by LBJ2.learn.Normalizer
      extended by LBJ2.learn.Softmax

public class Softmax
extends Normalizer

The softmax normalization function replaces each score with the fraction of its exponential out of the sum of all scores' exponentials. In other words, each score xi is replaced by exp(xi) / sumj exp(xj).


Constructor Summary
Softmax()
           
 
Method Summary
 ScoreSet normalize(ScoreSet scores)
          Normalizes the given ScoreSet; its scores are modified in place before it is returned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Softmax

public Softmax()
Method Detail

normalize

public ScoreSet normalize(ScoreSet scores)
Normalizes the given ScoreSet; its scores are modified in place before it is returned.

Specified by:
normalize in class Normalizer
Parameters:
scores - The set of scores to normalize.
Returns:
The normalized set of scores.