Module Import alias Import alias Import alias identifier Import alias ImportFrom alias Import alias identifier ImportFrom alias alias alias alias Import alias identifier ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call NameLoad Expr Call NameLoad AttributeLoad NameLoad attr keyword Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Print TupleLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Num keyword Str keyword Str Expr Call AttributeLoad NameLoad attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword Dict Str Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword Dict Str Num keyword Dict Str Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad keyword Num keyword Dict Str Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad keyword Dict Str Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad keyword Dict Str Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad keyword Dict Str Num Return decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Str Str Dict Str Str Num Num Dict Str Str Num Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr Num keyword Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpAdd Num BinOpMult AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Dict Str Str Assign NameStore BinOpMult Num BinOpAdd Num BinOpMult AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr keyword Dict Str Str decorator_list Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr keyword Dict Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Dict Str Str Assign NameStore BinOpAdd BinOpAdd Num Num BinOpMult Num BinOpAdd Num BinOpMult AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Dict Str Str Str Str Assign NameStore BinOpMult Num BinOpAdd BinOpAdd BinOpAdd Num Num Num BinOpMult AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Dict Str Str Str Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd Num Num Num BinOpMult BinOpMult Num AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Dict Str Str ListLoad Str Str Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd Num Num Num BinOpMult BinOpMult Num AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Str Str Dict Str Str Num Num Dict Str Str Num Num keyword Dict Str Num keyword Num keyword NameLoad Assign NameStore Call NameLoad NameLoad keyword Dict Str Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Num For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index CompareEq SubscriptLoad NameLoad Index Str NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareNotEq NameLoad Str body Continue Assign NameStore SubscriptLoad NameLoad Index CompareEq AttributeLoad NameLoad attr Str Assert CompareEq Call NameLoad NameLoad Num Str Assign NameStore Call AttributeLoad NameLoad attr BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Expr Call AttributeLoad NameLoad attr CompareLt NameLoad Num AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad BinOpMult NameLoad Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Str Str Dict Str Str Num Num Dict Str Str Num Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For NameStore Call NameLoad Num body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num keyword Num keyword Str keyword BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice BinOpMult Num Num For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list decorator_list
N/A N/A os N/A kabuki N/A numpy np N/A unittest nose.tools raises N/A pymc pm utils HNodeSimple HNodeSimpleVar sample_from_models create_test_models N/A pandas pd utils gen_func_df TestHierarchicalBreakDown N/A N/A unittest TestCase N/A N/A 
    simple tests to see if hierarchical merthods do not raise and error
     setUpClass N/A N/A self N/A N/A N/A N/A N/A self models N/A self params N/A create_test_models N/A N/A sample_from_models N/A self models n_iter 500 N/A classmethod runTest N/A N/A self N/A N/A N/A N/A test_logp N/A N/A self N/A N/A N/A model N/A self models N/A N/A N/A model logp N/A test_map N/A N/A self N/A N/A N/A N/A N/A N/A np random seed 123 N/A model N/A self models N/A N/A N/A N/A model find_starting_values N/A test_emcee N/A N/A self N/A N/A N/A N/A N/A self models N/A self params N/A create_test_models N/A N/A N/A N/A np random seed 123 N/A model N/A self models N/A N/A N/A N/A model find_starting_values N/A N/A N/A model sample_emcee N/A test_dic_info N/A N/A self N/A N/A N/A model N/A self models N/A N/A N/A model dic_info N/A test_print_stats N/A N/A self N/A N/A N/A model N/A self models N/A N/A N/A N/A model print_stats N/A N/A N/A model print_stats subj False N/A N/A model is_group_model N/A N/A N/A N/A model print_stats subj_idx 1 N/A test_load_db N/A N/A self N/A N/A N/A N/A new_models params N/A create_test_models N/A N/A i model N/A enumerate new_models N/A N/A N/A sample model i N/A N/A N/A model sample 100 dbname unittest.db db pickle N/A N/A N/A model load_db dbname unittest.db db pickle N/A N/A N/A model gen_stats N/A N/A N/A os remove unittest.db N/A test_init_from_existing_model N/A N/A self N/A N/A N/A new_models N/A create_test_models N/A N/A i_m pre_model N/A enumerate N/A self models N/A N/A N/A N/A N/A new_models N/A i_m init_from_existing_model pre_model N/A N/A N/A unittest skip TODO test_plot_posteriors N/A N/A self N/A N/A N/A N/A test_map N/A N/A self N/A N/A N/A model N/A self models N/A N/A N/A N/A model draw_from_prior N/A N/A N/A model approximate_map minimizer Powell use_basin False fall_to_simplex False individual_subjs True minimizer_kwargs N/A maxiter 100 N/A N/A N/A model draw_from_prior N/A N/A N/A model approximate_map minimizer Powell use_basin True fall_to_simplex False individual_subjs False minimizer_kwargs N/A maxiter 100 basin_kwargs N/A T 2 N/A N/A N/A model draw_from_prior N/A N/A N/A model approximate_map minimizer Powell use_basin False fall_to_simplex True cycles 2 minimizer_kwargs N/A maxiter 100 N/A N/A N/A model draw_from_prior N/A N/A N/A model approximate_map minimizer Powell use_basin True fall_to_simplex True minimizer_kwargs N/A maxiter 100 N/A N/A N/A model draw_from_prior N/A N/A N/A model approximate_map minimizer Nelder-Mead use_basin False fall_to_simplex False minimizer_kwargs N/A maxiter 100 N/A N/A N/A model draw_from_prior N/A N/A N/A model approximate_map minimizer Nelder-Mead use_basin True fall_to_simplex False minimizer_kwargs N/A maxiter 100 N/A N/A N/A TestModelCreation N/A N/A unittest TestCase N/A setUpClass N/A N/A self N/A N/A N/A N/A self n_subj 3 N/A N/A data _ N/A N/A N/A kabuki generate gen_rand_data gen_func_df N/A A B N/A loc scale 0 1 N/A loc scale 0 1 subjs N/A self n_subj N/A data N/A N/A pd DataFrame data N/A N/A data N/A condition2 N/A N/A N/A np random randint 2 size N/A len data N/A N/A self data data N/A classmethod runTest N/A N/A self N/A N/A N/A N/A test_save_and_load_breakdown N/A N/A self N/A N/A N/A m N/A HNodeSimple N/A self data N/A N/A N/A m sample 500 dbname test.db db pickle N/A N/A N/A m save test.model N/A m_load N/A N/A N/A kabuki utils load test.model N/A N/A N/A os remove test.db N/A N/A N/A os remove test.model N/A test_simple_no_deps N/A N/A self N/A N/A N/A m N/A HNodeSimple N/A self data N/A n_nodes N/A 1 N/A N/A self n_subj 2 N/A N/A N/A self assertEqual N/A len N/A m nodes_db n_nodes N/A test_simple_deps N/A N/A self N/A N/A N/A m N/A HNodeSimple N/A self data depends_on N/A mu condition N/A n_nodes N/A 2 N/A 1 N/A N/A self n_subj 2 N/A N/A N/A self assertEqual N/A len N/A m nodes_db n_nodes N/A test_assertion_on_wrong_param_name N/A N/A self N/A N/A N/A N/A HNodeSimple N/A self data depends_on N/A non_existant condition N/A N/A raises AssertionError test_assertion_on_wrong_param_name_tofix N/A N/A self N/A N/A N/A N/A HNodeSimple N/A self data depends_on N/A non_existant mu condition condition N/A test_simplevar_partly_deps N/A N/A self N/A N/A N/A m N/A HNodeSimpleVar N/A self data depends_on N/A mu condition N/A n_nodes N/A N/A 1 1 N/A 2 N/A 1 N/A N/A self n_subj 2 N/A N/A N/A self assertEqual N/A len N/A m nodes_db n_nodes N/A test_simplevar_deps N/A N/A self N/A N/A N/A m N/A HNodeSimpleVar N/A self data depends_on N/A mu mu_std condition condition N/A n_nodes N/A 2 N/A N/A N/A 1 1 1 N/A N/A self n_subj 2 N/A N/A N/A self assertEqual N/A len N/A m nodes_db n_nodes N/A test_simplevar_double_deps_A N/A N/A self N/A N/A N/A m N/A HNodeSimpleVar N/A self data depends_on N/A mu mu_std condition condition2 N/A n_nodes N/A N/A N/A 2 2 2 N/A N/A 4 N/A self n_subj 2 N/A N/A N/A self assertEqual N/A len N/A m nodes_db n_nodes N/A test_simplevar_double_deps_B N/A N/A self N/A N/A N/A m N/A HNodeSimpleVar N/A self data depends_on N/A mu mu_std N/A condition condition2 condition2 N/A n_nodes N/A N/A N/A 2 2 4 N/A N/A 4 N/A self n_subj 2 N/A N/A N/A self assertEqual N/A len N/A m nodes_db n_nodes N/A N/A TestEstimation N/A N/A unittest TestCase N/A N/A 
    simple tests to see if hierarchical methods do not raise and error
     test_map_approx N/A N/A self N/A N/A N/A subjs 40 N/A N/A data params_true N/A N/A N/A kabuki generate gen_rand_data gen_func_df N/A A B N/A loc scale 0 1 N/A loc scale 2 1 subj_noise N/A loc 0.1 size 1000 subjs subjs N/A model N/A HNodeSimple data depends_on N/A mu condition N/A N/A N/A model approximate_map N/A N/A N/A model approximate_map individual_subjs False N/A counter 0 N/A N/A condition subj_params N/A N/A params_true items N/A N/A nodes N/A N/A model nodes_db N/A N/A N/A N/A model nodes_db N/A condition condition N/A N/A idx params N/A enumerate subj_params N/A N/A nodes_subj N/A nodes N/A N/A N/A nodes N/A subj_idx idx N/A N/A param_name value N/A N/A params items N/A N/A N/A param_name loc N/A N/A N/A node N/A nodes_subj N/A N/A N/A nodes_subj knode_name mu_subj N/A N/A N/A len node 1 Only one node should have been left after slicing. N/A abs_error N/A N/A np abs N/A N/A N/A node map N/A 0 value N/A N/A N/A self assertTrue N/A abs_error 0.2 N/A counter 1 N/A N/A N/A self assertEqual counter N/A subjs 2 N/A N/A TestConcatenate N/A N/A unittest TestCase N/A test_concat N/A N/A self N/A N/A N/A n_subj 5 N/A N/A data params N/A N/A N/A kabuki generate gen_rand_data gen_func_df N/A A B N/A loc scale 0 1 N/A loc scale 0 1 subjs n_subj N/A data N/A N/A pd DataFrame data N/A models N/A N/A i N/A range 4 N/A N/A m N/A HNodeSimple data N/A N/A N/A m sample 100 burn 0 db pickle dbname N/A test_%d i N/A N/A N/A models append m N/A super_model N/A N/A N/A kabuki utils concat_models models N/A stochs N/A N/A super_model get_stochastics N/A stoch N/A stochs node N/A N/A N/A N/A self assertEqual N/A len N/A N/A stoch trace N/A N/A 100 4 N/A i N/A range 4 N/A N/A N/A N/A os remove N/A test_%d i N/A N/A