public class DifferentiableSoftmaxOperator extends SoftmaxOperator implements DifferentiableDPOperator
SoftmaxOperatorbeta, temp| Constructor and Description |
|---|
DifferentiableSoftmaxOperator() |
DifferentiableSoftmaxOperator(double beta) |
| Modifier and Type | Method and Description |
|---|---|
FunctionGradient |
gradient(double[] qs,
FunctionGradient[] qGradients)
Returns the gradient of this DP operator, giving the Q-values on which it operates, their gradient.
|
apply, getBeta, setBetaclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplypublic DifferentiableSoftmaxOperator()
public DifferentiableSoftmaxOperator(double beta)
public FunctionGradient gradient(double[] qs, FunctionGradient[] qGradients)
DifferentiableDPOperatorgradient in interface DifferentiableDPOperatorqs - the q-valuesqGradients - the gradients of the Q-value