Click or drag to resize
VariableBernoulliFromLogOdds Method (VariableDouble)
Microsoft Research
Creates a Boolean random variable with the probability of being true specified by the input's logistic function, which is represented by a random variable.

Namespace: MicrosoftResearch.Infer.Models
Assembly: Infer.Compiler (in Infer.Compiler.dll) Version: 2.6.41128.1 (2.6.41128.1)
Syntax
public static Variable<bool> BernoulliFromLogOdds(
	Variable<double> logOdds
)

Parameters

logOdds
Type: MicrosoftResearch.Infer.ModelsVariableDouble
A double random variable that represents the logistic function, which specifies the probability that the variable is true as probTrue = 1/(1 + exp(-logOdds))

Return Value

Type: VariableBoolean
Returns a Boolean random variable.
See Also