dualbounds.utilities.BatchedCategorical.from_binary_probs

classmethod BatchedCategorical.from_binary_probs(probs)[source]

Instantiates distribution for a binary-valued variable.

Parameters:
probs : np.array

n-length array of P(Yi = 1)