Creates a random int variable x where p(x=k) is proportional to exp(logProbs[k]), i.e. the softmax function of the logProbs.
| C# | Visual Basic | Visual C++ |
public static Variable<int> DiscreteFromLogProbs( VariableArray<double> logProbs )
Public Shared Function DiscreteFromLogProbs ( _ logProbs As VariableArray(Of Double) _ ) As Variable(Of Integer)
public: static Variable<int>^ DiscreteFromLogProbs( VariableArray<double>^ logProbs )
- logProbs (VariableArray<(Of <(Double>)>))
- Arguments to the softmax.
An integer random variable