public class Softmax extends Normalizer
si is
replaced by exp(alpha si) / sumj exp(alpha
sj), where alpha is a user-specified constant.| Modifier and Type | Field and Description |
|---|---|
protected double |
alpha
The user-specified constant described above.
|
| Constructor and Description |
|---|
Softmax()
Default constructor; sets
alpha to 1. |
Softmax(double a)
Initializing constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getAlpha()
Retrieves the value of
alpha. |
ScoreSet |
normalize(ScoreSet scores)
Normalizes the given
ScoreSet; its scores are modified in place before it is
returned. |
public Softmax()
alpha to 1.public Softmax(double a)
a - The setting for alpha.public double getAlpha()
alpha.public ScoreSet normalize(ScoreSet scores)
ScoreSet; its scores are modified in place before it is
returned.normalize in class Normalizerscores - The set of scores to normalize.Copyright © 2016. All rights reserved.