Module Import alias identifier Import alias FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore TupleLoad Call AttributeLoad NameLoad attr UnaryOpUSub NameLoad Call AttributeLoad NameLoad attr UnaryOpUSub NameLoad Assign NameStore BinOpMult Num BinOpAdd BinOpAdd BinOpSub BinOpSub NameLoad NameLoad Num Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad BinOpDiv Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad Num NameLoad If CompareEq NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad CompareLt NameLoad Num Assign NameStore BinOpMult Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Assign NameStore BinOpMult AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad CompareLt NameLoad Num Assign SubscriptStore NameLoad Index NameLoad AttributeLoad NameLoad attr If CompareEq NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad CompareLt NameLoad Num Assign NameStore BinOpMult Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad CompareLt NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad CompareGt NameLoad Num If BoolOpAnd CompareEq NameLoad Num NameLoad body Assign NameStore BinOpMult AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad AttributeLoad NameLoad attr If NameLoad body Print BinOpMod Str TupleLoad NameLoad NameLoad NameLoad If Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad body Print Str Print BinOpMod Str TupleLoad NameLoad NameLoad Print BinOpMod Str TupleLoad NameLoad NameLoad Print BinOpMod Str NameLoad Print BinOpMod Str NameLoad Print BinOpMod Str NameLoad Print BinOpMod Str NameLoad Raise NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Call NameLoad BinOpMult Num Call AttributeLoad NameLoad attr Num BinOpMult AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num BinOpMult Num Call AttributeLoad NameLoad attr Num BinOpMult AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call NameLoad BinOpMult Num Call AttributeLoad NameLoad attr Num BinOpMult UnaryOpUSub AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num BinOpMult Num Call AttributeLoad NameLoad attr Num BinOpMult AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call NameLoad BinOpMult Num Call AttributeLoad NameLoad attr Num BinOpMult AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num BinOpMult Num Call AttributeLoad NameLoad attr Num BinOpMult UnaryOpUSub AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call NameLoad BinOpMult Num Call AttributeLoad NameLoad attr Num BinOpMult UnaryOpUSub AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num BinOpMult Num Call AttributeLoad NameLoad attr Num BinOpMult UnaryOpUSub AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call NameLoad BinOpMult Num Call AttributeLoad NameLoad attr Num BinOpMult AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num BinOpMult Num Call AttributeLoad NameLoad attr Num BinOpMult AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call NameLoad BinOpMult Num Call AttributeLoad NameLoad attr Num BinOpMult UnaryOpUSub AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num BinOpMult Num Call AttributeLoad NameLoad attr Num BinOpMult AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call NameLoad BinOpMult Num Call AttributeLoad NameLoad attr Num BinOpMult AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num BinOpMult Num Call AttributeLoad NameLoad attr Num BinOpMult UnaryOpUSub AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call NameLoad BinOpMult Num Call AttributeLoad NameLoad attr Num BinOpMult UnaryOpUSub AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num BinOpMult Num Call AttributeLoad NameLoad attr Num BinOpMult UnaryOpUSub AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args defaults vararg body Expr Str Assign TupleStore NameStore NameStore TupleLoad Num Num For NameStore NameLoad body AugAssignAdd NameStore SubscriptLoad NameLoad Index Num AugAssignAdd NameStore BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num AugAssignDiv NameStore NameLoad Return Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpSub SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num TryExcept body Assert CompareGtE NameLoad Num handlers ExceptHandler type NameLoad body Print BinOpMod Str TupleLoad NameLoad NameLoad Print BinOpMod Str NameLoad Raise NameLoad If CompareEq NameLoad Num body Assign NameStore Num orelse Assign NameStore BinOpDiv BinOpSub BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num NameLoad Return Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword NameLoad Assign NameStore Dict For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad For NameStore NameLoad body AugAssignAdd SubscriptStore NameLoad Index SubscriptLoad NameLoad Index NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignSub NameStore NameLoad Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr BinOpAdd Num Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareGt NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr BinOpAdd Num Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignSub NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpDiv NameLoad Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body TryExcept body Assert UnaryOpNot Call NameLoad Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Print BinOpMod Str NameLoad Print NameLoad Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assert CompareLt Call AttributeLoad NameLoad attr BinOpSub NameLoad Num Num handlers ExceptHandler type NameLoad body Print BinOpMod Str NameLoad Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assert CompareLt Call AttributeLoad NameLoad attr NameLoad Num handlers ExceptHandler type NameLoad body Print BinOpMod Str NameLoad Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Num If SubscriptLoad NameLoad Index Num body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num orelse Assign NameStore Call AttributeLoad NameLoad attr BinOpSub Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr CompareEq SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad keyword Num Index Num Num Index Num handlers ExceptHandler type NameLoad body Print Str Print NameLoad Raise NameLoad ExceptHandler body Raise NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMult SubscriptLoad NameLoad Index Num Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr CompareGt NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMult SubscriptLoad NameLoad Index Num Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Num While CompareGt NameLoad SubscriptLoad NameLoad Index NameLoad body AugAssignAdd NameStore Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore Call NameLoad NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad For NameStore Call NameLoad BinOpAdd NameLoad Num NameLoad body If CompareLt SubscriptLoad NameLoad Index NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign TupleStore SubscriptStore NameLoad Index NameLoad SubscriptStore NameLoad Index NameLoad TupleLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Return SubscriptLoad NameLoad Index BinOpSub NameLoad Num decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpDiv Num BinOpAdd Num Call AttributeLoad NameLoad attr UnaryOpUSub NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A numpy np N/A math compute_kl N/A N/A mean_1 log_prec_1 mean_2 log_prec_2 N/A N/A N/A 
    compute KL between two Gaussian distributions
     N/A mean_1 N/A N/A np asarray mean_1 N/A log_prec_1 N/A N/A np asarray log_prec_1 N/A mean_2 N/A N/A np asarray mean_2 N/A log_prec_2 N/A N/A np asarray log_prec_2 N/A len_1 N/A len mean_1 N/A len_2 N/A len mean_2 N/A len_max N/A max len_1 len_2 N/A N/A var_1 var_2 N/A N/A N/A np exp N/A log_prec_1 N/A N/A np exp N/A log_prec_2 N/A kl N/A 0.5 N/A N/A N/A N/A log_prec_1 log_prec_2 1 N/A N/A np exp N/A log_prec_2 log_prec_1 N/A N/A N/A np power N/A mean_1 mean_2 2 var_2 N/A N/A len_1 1 N/A N/A cond N/A N/A np logical_and N/A N/A np isinf log_prec_1 N/A log_prec_1 0 N/A idx_log_prec_1_neginf N/A N/A N/A np ones len_max cond N/A cond N/A N/A kl N/A N/A np inf N/A N/A np ones len_max N/A N/A idx_log_prec_1_neginf N/A N/A np logical_and N/A N/A np isinf log_prec_1 N/A log_prec_1 0 N/A N/A kl N/A idx_log_prec_1_neginf N/A np inf N/A N/A len_2 1 N/A N/A cond N/A N/A np logical_and N/A N/A np isinf log_prec_2 N/A log_prec_2 0 N/A idx_log_prec_2_neginf N/A N/A N/A np ones len_max cond N/A N/A idx_log_prec_2_neginf N/A N/A np logical_and N/A N/A np isinf log_prec_2 N/A log_prec_2 0 N/A idx_both_log_prec_neginf N/A N/A np logical_and idx_log_prec_1_neginf idx_log_prec_2_neginf N/A N/A kl N/A idx_both_log_prec_neginf 0.0 N/A idx_log_prec_2_posinf N/A N/A np logical_and N/A N/A np isinf log_prec_2 N/A log_prec_2 0 N/A N/A N/A len_2 1 idx_log_prec_2_posinf N/A N/A kl N/A N/A np inf N/A N/A np ones len_max N/A N/A N/A kl N/A idx_log_prec_2_posinf N/A np inf N/A False N/A N/A N/A log_prec_1 = %s, log_prec_2 = %s, kl = %s N/A log_prec_1 log_prec_2 kl N/A N/A N/A np any N/A N/A np isnan kl N/A N/A 
something went wrong with kl computation N/A N/A var_1 = %s, var_2 = %s N/A var_1 var_2 N/A N/A log_prec_1 = %s, log_prec_2 = %s N/A log_prec_1 log_prec_2 N/A N/A idx_log_prec_1_neginf = %s idx_log_prec_1_neginf N/A N/A idx_log_prec_2_neginf = %s idx_log_prec_2_neginf N/A N/A idx_log_prec_2_posinf = %s idx_log_prec_2_posinf N/A N/A kl = %s kl N/A Exception N/A kl N/A test_compute_kl N/A N/A N/A N/A N/A N/A compute_kl N/A 0 N/A N/A np ones 2 N/A N/A np inf N/A N/A np ones 2 N/A 0 N/A N/A np ones 1 N/A N/A np inf N/A N/A np ones 1 N/A N/A compute_kl N/A 0 N/A N/A np ones 2 N/A N/A N/A np inf N/A N/A np ones 2 N/A 0 N/A N/A np ones 1 N/A N/A np inf N/A N/A np ones 1 N/A N/A compute_kl N/A 0 N/A N/A np ones 2 N/A N/A np inf N/A N/A np ones 2 N/A 0 N/A N/A np ones 1 N/A N/A N/A np inf N/A N/A np ones 1 N/A N/A compute_kl N/A 0 N/A N/A np ones 2 N/A N/A N/A np inf N/A N/A np ones 2 N/A 0 N/A N/A np ones 1 N/A N/A N/A np inf N/A N/A np ones 1 N/A N/A compute_kl N/A 0 N/A N/A np ones 1 N/A N/A np inf N/A N/A np ones 1 N/A 0 N/A N/A np ones 2 N/A N/A np inf N/A N/A np ones 2 N/A N/A compute_kl N/A 0 N/A N/A np ones 1 N/A N/A N/A np inf N/A N/A np ones 1 N/A 0 N/A N/A np ones 2 N/A N/A np inf N/A N/A np ones 2 N/A N/A compute_kl N/A 0 N/A N/A np ones 1 N/A N/A np inf N/A N/A np ones 1 N/A 0 N/A N/A np ones 2 N/A N/A N/A np inf N/A N/A np ones 2 N/A N/A compute_kl N/A 0 N/A N/A np ones 1 N/A N/A N/A np inf N/A N/A np ones 1 N/A 0 N/A N/A np ones 2 N/A N/A N/A np inf N/A N/A np ones 2 N/A multiply_gaussians N/A N/A N/A params N/A N/A 
    input is a list containing (variable number of) gaussian parameters
    each element is a numpy array containing mean and precision of that gaussian
     N/A N/A precision_op mean_op N/A 0.0 0.0 N/A param params N/A N/A precision_op N/A param N/A 1 N/A mean_op N/A N/A param N/A 0 N/A param N/A 1 N/A mean_op precision_op N/A N/A N/A np array N/A mean_op precision_op N/A divide_gaussians N/A N/A mean_precision_num mean_precision_den N/A N/A N/A 
    mean_precision_num are parameters of gaussian in the numerator
    mean_precision_den are parameters of gaussian in the denominator
    output is a valid gaussian only if the variance of ouput is non-negative
     N/A precision_op N/A N/A mean_precision_num N/A 1 N/A mean_precision_den N/A 1 N/A N/A N/A N/A precision_op 0.0 N/A N/A N/A AssertionError N/A N/A N/A inputs = %s, %s N/A mean_precision_num mean_precision_den N/A N/A precision_op = %s precision_op N/A AssertionError N/A N/A precision_op 0.0 N/A N/A mean_op 0.0 N/A N/A mean_op N/A N/A N/A N/A mean_precision_num N/A 0 N/A mean_precision_num N/A 1 N/A N/A mean_precision_den N/A 0 N/A mean_precision_den N/A 1 precision_op N/A N/A N/A np array N/A mean_op precision_op N/A hist_count N/A N/A x basis N/A N/A N/A 
    counts number of times each element in basis appears in x
    op is a vector of same size as basis
    assume no duplicates in basis
     N/A op N/A N/A np zeros N/A len basis dtype int N/A map_basis N/A N/A N/A n k N/A enumerate basis N/A N/A N/A map_basis N/A k n N/A t x N/A N/A N/A op N/A N/A map_basis N/A t 1 N/A op N/A logsumexp N/A N/A x N/A N/A N/A tmp N/A N/A x copy N/A tmp_max N/A N/A np max tmp N/A tmp tmp_max N/A op N/A N/A N/A np log N/A N/A np sum N/A N/A np exp tmp tmp_max N/A op N/A logsumexp_array N/A N/A v1 v2 N/A N/A N/A 
    computes logsumexp of each element in v1 and v2
     N/A v_min N/A N/A np minimum v1 v2 N/A v_max N/A N/A np maximum v1 v2 N/A op N/A v_max N/A N/A np log N/A 1 N/A N/A np exp N/A v_min v_max N/A op N/A logsumexp_2 N/A N/A x y N/A N/A N/A N/A x y N/A N/A min_val y N/A max_val x N/A N/A min_val x N/A max_val y N/A op N/A max_val N/A N/A math log N/A 1 N/A N/A math exp N/A min_val max_val N/A op N/A softmax N/A N/A x N/A N/A N/A tmp N/A N/A x copy N/A tmp_max N/A N/A np max tmp N/A tmp N/A float tmp_max N/A tmp N/A N/A np exp tmp N/A op N/A tmp N/A N/A np sum tmp N/A op N/A assert_no_nan N/A N/A mat name N/A matrix N/A N/A N/A N/A N/A N/A any N/A N/A np isnan mat N/A N/A N/A AssertionError N/A N/A N/A %s contains NaN name N/A mat N/A AssertionError N/A check_if_one N/A N/A val N/A N/A N/A N/A N/A N/A N/A N/A np abs N/A val 1 1e-09 N/A N/A N/A AssertionError N/A N/A N/A val = %s (needs to be equal to 1) val N/A AssertionError N/A check_if_zero N/A N/A val N/A N/A N/A N/A N/A N/A N/A N/A np abs val 1e-09 N/A N/A N/A AssertionError N/A N/A N/A val = %s (needs to be equal to 0) val N/A AssertionError N/A linear_regression N/A N/A x y N/A N/A N/A ls N/A N/A N/A np linalg lstsq x y N/A coef N/A ls N/A 0 N/A N/A ls N/A 1 N/A N/A sum_squared_residuals N/A float N/A ls N/A 1 N/A N/A sum_squared_residuals N/A N/A np sum N/A N/A N/A np dot x coef y N/A N/A coef sum_squared_residuals N/A sample_multinomial N/A N/A prob N/A N/A N/A N/A N/A k N/A int N/A N/A N/A np where N/A N/A N/A N/A N/A np random multinomial 1 prob size 1 N/A 0 1 N/A 0 N/A N/A N/A TypeError N/A N/A problem in sample_multinomial: prob =  N/A prob N/A TypeError N/A N/A N/A Exception N/A k N/A sample_multinomial_scores N/A N/A scores N/A N/A N/A scores_cumsum N/A N/A np cumsum scores N/A s N/A N/A scores_cumsum N/A -1 N/A N/A N/A np random rand 1 N/A k N/A int N/A N/A np sum N/A s scores_cumsum N/A k N/A sample_multinomial_scores_old N/A N/A scores N/A N/A N/A scores_cumsum N/A N/A np cumsum scores N/A s N/A N/A scores_cumsum N/A -1 N/A N/A N/A np random rand 1 N/A k 0 N/A N/A s N/A scores_cumsum N/A k N/A N/A k 1 N/A k N/A sample_polya N/A N/A alpha_vec n N/A N/A N/A  alpha_vec is the parameter of the Dirichlet distribution, n is the #samples  N/A prob N/A N/A N/A np random dirichlet alpha_vec N/A n_vec N/A N/A N/A np random multinomial n prob N/A n_vec N/A get_kth_minimum N/A N/A x k N/A 1 N/A N/A  gets the k^th minimum element of the list x 
        (note: k=1 is the minimum, k=2 is 2nd minimum) ...
        based on the incomplete selection sort pseudocode  N/A n N/A len x N/A i N/A range n N/A N/A minIndex i N/A minValue N/A x N/A i N/A j N/A range N/A i 1 n N/A N/A N/A N/A x N/A j minValue N/A N/A minIndex j N/A minValue N/A x N/A j N/A N/A N/A x N/A i N/A x N/A minIndex N/A N/A x N/A minIndex N/A x N/A i N/A N/A x N/A N/A k 1 N/A empty N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A N/A sigmoid N/A N/A x N/A N/A N/A op N/A 1.0 N/A 1 N/A N/A np exp N/A x N/A op N/A compute_m_sd N/A N/A x N/A N/A N/A m N/A N/A np mean x N/A s N/A N/A np sqrt N/A N/A np var x N/A N/A m s N/A N/A N/A __name__ __main__ N/A N/A N/A test_compute_kl