(input)
return sample
Binormial python function definition
Binormial python function definition
Binormial python function definition
def py_func_bernoulli(input):
    """
        Binormial python function definition
    """
    prob_array = sigmoid(np.array(input))
    sample = np.random.binomial(1, prob_array)
    return sample
def py_func_bernoulli ( input ) : prob_array = sigmoid ( np . array ( input ) ) sample = np . random . binomial ( 1 , prob_array ) return sample