Module ImportFrom alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Import alias Import alias Import alias identifier Import alias identifier Import alias identifier Import alias identifier Import alias identifier FunctionDef arguments args NameParam NameParam defaults Num body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Str NameLoad body If CompareEq NameLoad Str body Expr Call NameLoad NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Str body Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore ListComp Num comprehension NameStore Call NameLoad NameLoad Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad keyword NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Assign SubscriptStore NameLoad Index TupleLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Call NameLoad NameLoad Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Num Assign NameStore Num If NameLoad body Assign NameStore Num orelse Assign NameStore NameLoad Assign NameStore Num Assign NameStore ListLoad TupleLoad NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Num NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore Lambda arguments args defaults Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr CompareLt NameLoad BinOpSub NameLoad BinOpMult Num NameLoad Index Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr CompareGt NameLoad BinOpAdd NameLoad BinOpMult Num NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Num For NameStore Call NameLoad BinOpSub Call NameLoad NameLoad Num body AugAssignAdd NameStore BinOpDiv BinOpMult BinOpSub SubscriptLoad NameLoad Index BinOpAdd NameLoad Num SubscriptLoad NameLoad Index NameLoad BinOpAdd SubscriptLoad NameLoad Index BinOpAdd NameLoad Num SubscriptLoad NameLoad Index NameLoad Num Expr Call NameLoad BinOpAdd Str Call NameLoad NameLoad Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr keyword Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Num keyword Num keyword Str keyword Str keyword Num keyword ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Num Assign NameStore Num If NameLoad body Assign NameStore Num orelse Assign NameStore NameLoad Assign NameStore Num Assign NameStore ListLoad TupleLoad NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad Call NameLoad NameLoad Num NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore Lambda arguments args defaults Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad BinOpMod Str Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpAdd Call NameLoad NameLoad Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpDiv NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Num NameLoad keyword Str keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad keyword Call NameLoad NameLoad keyword Num keyword Str keyword NameLoad Expr Call NameLoad keyword Call NameLoad NameLoad keyword Num keyword Str keyword NameLoad Expr Call NameLoad keyword Call NameLoad NameLoad keyword Num keyword Str keyword NameLoad Expr Call NameLoad keyword Call NameLoad NameLoad keyword Num keyword Str keyword NameLoad
N/A __future__ print_function N/A argparse N/A random N/A tempfile N/A time N/A sys collections Counter N/A numpy N/A pylab N/A crosscat.tests.enumerate_utils eu N/A crosscat.tests.plot_utils pu N/A crosscat.utils.sample_utils su N/A crosscat.utils.data_utils du N/A crosscat.cython_code.State State get_next_seed N/A N/A rng max_val N/A 32767 N/A N/A N/A N/A rng randint max_val N/A run_test N/A N/A seed n d_type observed N/A 1000 continuous False N/A N/A N/A d_type continuous N/A N/A N/A run_test_continuous n observed seed N/A N/A N/A d_type multinomial N/A N/A N/A run_test_multinomial n observed seed N/A generate_multinomial_data N/A N/A seed n_cols n_rows n_views N/A N/A N/A rng N/A N/A N/A numpy random RandomState seed N/A cols_to_views N/A 0 N/A _ N/A range n_cols N/A rows_in_views_to_cols N/A N/A view N/A range n_views N/A N/A partition N/A N/A eu CRP n_rows 2.0 N/A get_next_seed rng N/A N/A N/A random shuffle partition N/A rng uniform N/A N/A N/A rows_in_views_to_cols append partition N/A data N/A N/A numpy zeros N/A n_rows n_cols dtype float N/A col N/A range n_cols N/A N/A view N/A cols_to_views N/A col N/A row N/A range n_rows N/A N/A cluster N/A N/A rows_in_views_to_cols N/A view N/A row N/A N/A data N/A N/A row col cluster N/A T N/A N/A data tolist N/A M_r N/A N/A du gen_M_r_from_T T N/A M_c N/A N/A du gen_M_c_from_T T N/A N/A T M_c N/A N/A du convert_columns_to_multinomial T M_c N/A list N/A range n_cols N/A N/A T M_r M_c N/A run_test_continuous N/A N/A n observed seed N/A N/A N/A rng N/A N/A N/A numpy random RandomState seed N/A n_rows 40 N/A n_cols 40 N/A observed N/A N/A query_row 10 N/A N/A query_row n_rows N/A query_column 1 N/A Q N/A N/A query_row query_column N/A N/A T M_r M_c N/A N/A du gen_factorial_data_objects N/A get_next_seed rng 2 2 n_rows 1 N/A state N/A N/A State p_State M_c T N/A T_array N/A N/A numpy array T N/A X_L N/A N/A state get_X_L N/A X_D N/A N/A state get_X_D N/A Y N/A N/A gns N/A N/A N/A N/A N/A get_next_seed rng N/A samples N/A N/A su simple_predictive_sample M_c X_L X_D Y Q gns n n N/A X_array N/A N/A numpy sort N/A N/A numpy array samples N/A std_X N/A N/A numpy std X_array N/A mean_X N/A N/A numpy mean X_array N/A X_filter_low N/A N/A N/A numpy nonzero N/A X_array N/A mean_X N/A 2.0 std_X N/A 0 N/A X_filter_high N/A N/A N/A numpy nonzero N/A X_array N/A mean_X N/A 2.0 std_X N/A 0 N/A X_filter N/A N/A numpy hstack N/A X_filter_low X_filter_high N/A X_array N/A N/A numpy delete X_array X_filter N/A X_array N/A N/A numpy sort X_array N/A X N/A N/A X_array tolist N/A Qs N/A N/A x X N/A N/A Qtmp N/A query_row query_column x N/A N/A N/A Qs append Qtmp N/A densities N/A N/A numpy exp N/A N/A su simple_predictive_probability M_c X_L X_D Y Qs N/A area_density 0 N/A i N/A range N/A N/A len X 1 N/A N/A area_density N/A N/A N/A N/A X N/A N/A i 1 N/A X N/A i N/A N/A densities N/A N/A i 1 N/A densities N/A i 2.0 N/A N/A print N/A Area of PDF (should be close to, but not greater than, 1):  N/A str area_density N/A N/A print *Note: The area will be less than one because the range (integral) is truncated. N/A N/A N/A pylab figure facecolor white N/A N/A pdf bins patches N/A N/A pylab hist X 100 normed 1 histtype stepfilled label samples alpha 0.5 color N/A 0.5 0.5 0.5 N/A N/A N/A pylab scatter X densities c red label pdf edgecolor none N/A N/A N/A pylab legend loc upper left fontsize x-small N/A N/A N/A pylab xlabel value N/A N/A N/A pylab ylabel frequency/density N/A N/A N/A pylab title TEST: PDF (not scaled) N/A N/A N/A pylab show N/A N/A fd fig_filename N/A N/A tempfile mkstemp prefix run_test_continuous_ suffix .png dir . N/A N/A N/A pylab savefig fig_filename N/A run_test_multinomial N/A N/A n observed seed N/A N/A N/A rng N/A N/A N/A numpy random RandomState seed N/A n_rows 40 N/A n_cols 40 N/A observed N/A N/A query_row 10 N/A N/A query_row n_rows N/A query_column 1 N/A Q N/A N/A query_row query_column N/A N/A T M_r M_c N/A generate_multinomial_data N/A get_next_seed rng 2 n_rows 1 N/A state N/A N/A State p_State M_c T N/A X_L N/A N/A state get_X_L N/A X_D N/A N/A state get_X_D N/A Y N/A N/A gns N/A N/A N/A N/A N/A get_next_seed rng N/A samples N/A N/A su simple_predictive_sample M_c X_L X_D Y Q gns n n N/A X_array N/A N/A numpy sort N/A N/A numpy array samples N/A X N/A N/A numpy unique X_array N/A X N/A N/A X tolist N/A Qs N/A N/A x X N/A N/A Qtmp N/A query_row query_column x N/A N/A N/A Qs append Qtmp N/A densities N/A N/A numpy exp N/A N/A su simple_predictive_probability M_c X_L X_D Y Qs N/A N/A print N/A Sum of densities (should be 1): %f N/A N/A numpy sum densities N/A N/A N/A pylab clf N/A mbins N/A N/A numpy unique X_array N/A mbins N/A N/A numpy append mbins N/A N/A max mbins 1 N/A N/A pdf bins N/A N/A numpy histogram X_array mbins N/A pdf N/A pdf N/A float N/A N/A numpy sum pdf N/A N/A N/A pylab bar N/A mbins N/A 0 -1 pdf label samples alpha 0.5 N/A N/A N/A pylab scatter X densities c red label pdf edgecolor none N/A N/A N/A pylab legend loc upper left fontsize x-small N/A N/A N/A pylab xlabel value N/A N/A N/A pylab ylabel frequency/density N/A N/A N/A pylab title TEST: PDF (not scaled) N/A N/A N/A pylab show N/A N/A fd fig_filename N/A N/A tempfile mkstemp prefix run_test_multinomial_ suffix .png dir . N/A N/A N/A pylab savefig fig_filename N/A N/A rng N/A N/A N/A numpy random RandomState N/A N/A run_test seed N/A get_next_seed rng n 5000 d_type continuous observed False N/A N/A run_test seed N/A get_next_seed rng n 5000 d_type continuous observed True N/A N/A run_test seed N/A get_next_seed rng n 5000 d_type multinomial observed False N/A N/A run_test seed N/A get_next_seed rng n 5000 d_type multinomial observed True