public class SoftmaxOperator extends java.lang.Object implements DPOperator
| Modifier and Type | Field and Description |
|---|---|
protected double |
beta |
protected double |
temp |
| Constructor and Description |
|---|
SoftmaxOperator()
Initializes with beta = 1.0
|
SoftmaxOperator(double beta)
Initializes.
|
| Modifier and Type | Method and Description |
|---|---|
double |
apply(double[] qs)
Applies the operator on the input q-values and returns the result.
|
double |
getBeta() |
void |
setBeta(double beta) |
public SoftmaxOperator()
public SoftmaxOperator(double beta)
beta - the softmax knob.public double getBeta()
public void setBeta(double beta)
public double apply(double[] qs)
DPOperatorapply in interface DPOperatorqs - the q-values on which the operator is to be applied.