Module Import alias identifier Import alias Import alias Import alias Import alias Import alias FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ListComp ListLoad Call AttributeLoad NameLoad attr Num Num comprehension NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword Num keyword Num Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword Num Assign AttributeStore NameLoad attr Call NameLoad keyword Num Assign AttributeStore NameLoad attr ListLoad Num Num Assign AttributeStore NameLoad attr Call NameLoad keyword Num keyword Num Assign AttributeStore NameLoad attr Call NameLoad keyword Num keyword Num Assign AttributeStore NameLoad attr Call NameLoad keyword Num keyword Num keyword Num keyword Num Assign AttributeStore NameLoad attr Call NameLoad keyword Num keyword Num keyword Num Assign AttributeStore NameLoad attr Call NameLoad keyword Num keyword Num keyword Num Assign AttributeStore NameLoad attr Call NameLoad keyword Num keyword Num keyword Num Assign AttributeStore NameLoad attr Call NameLoad keyword Num keyword Num keyword Num Assign AttributeStore NameLoad attr Call NameLoad keyword Num keyword Num keyword Num keyword Num Assign AttributeStore NameLoad attr Call NameLoad keyword Num keyword Num keyword Num keyword Num Assign AttributeStore NameLoad attr Call NameLoad keyword Num keyword Num keyword Num keyword Num Assign AttributeStore NameLoad attr ListLoad Num Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Assert CompareIsNot NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Num Assert CompareIsNot NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Assert CompareIsNot NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Num Assert CompareIsNot NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Num Expr Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ListComp ListLoad Call AttributeLoad NameLoad attr Num Num comprehension NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore ListLoad Str Str Str Str body Assert CompareIn NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore ListLoad Str Str body Assert CompareIn NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareIs Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Assert CompareIn NameLoad ListLoad Str Str Assert BoolOpOr CompareIs Call NameLoad NameLoad NameLoad CompareIs Call NameLoad NameLoad AttributeLoad NameLoad attr Assert UnaryOpNot Call AttributeLoad NameLoad attr NameLoad Assert UnaryOpNot Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Str body Assert CompareGt NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict Str Str Num Num Assert CompareLt NameLoad Num Assert CompareLt Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Num Expr Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ListComp ListLoad Call AttributeLoad NameLoad attr Num Num comprehension NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore ListLoad Str Str Str Str body Assert CompareIn NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore ListLoad Str Str body Assert CompareIn NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareIs Call NameLoad NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Assert CompareIn NameLoad ListLoad Str Str Assert BoolOpOr CompareIs Call NameLoad NameLoad NameLoad CompareIs Call NameLoad NameLoad AttributeLoad NameLoad attr Assert UnaryOpNot Call AttributeLoad NameLoad attr NameLoad Assert UnaryOpNot Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Str body Assert CompareGt NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict Str Str Num Num Assert CompareLt NameLoad Num Assert CompareLt Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Num Expr Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ListComp ListLoad Call AttributeLoad NameLoad attr Num Num comprehension NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num ListLoad Num Assign NameStore Call NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assert CompareLt NameLoad Num Assert CompareLt Call AttributeLoad NameLoad attr BinOpSub Num NameLoad Num Assign NameStore Call NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assert CompareLt NameLoad Num Assert CompareLt Call AttributeLoad NameLoad attr BinOpSub Num NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num ListLoad Num Assign NameStore Call NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assert CompareEq Call NameLoad NameLoad Num Assert CompareLt Call AttributeLoad NameLoad attr BinOpSub Num SubscriptLoad NameLoad Index TupleLoad Num Num Num Assert CompareLt Call AttributeLoad NameLoad attr BinOpSub Num SubscriptLoad NameLoad Index TupleLoad Num Num Num Assign NameStore Call NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assert CompareEq Call NameLoad NameLoad Num Assert CompareLt Call AttributeLoad NameLoad attr BinOpSub Num SubscriptLoad NameLoad Index TupleLoad Num Num Num Assert CompareLt Call AttributeLoad NameLoad attr BinOpSub Num SubscriptLoad NameLoad Index TupleLoad Num Num Num Assign NameStore Call NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr Num Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr ListComp ListLoad NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assert CompareEq Call NameLoad NameLoad Num For NameStore Call NameLoad Num Num body Assert CompareGt SubscriptLoad NameLoad Index TupleLoad BinOpSub NameLoad Num Num SubscriptLoad NameLoad Index TupleLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Num keyword Num Assert CompareIs Call NameLoad NameLoad NameLoad Assert CompareEq Call NameLoad NameLoad Num Assert CompareEq SubscriptLoad NameLoad Index Num UnaryOpUSub SubscriptLoad NameLoad Index Num Assert CompareEq SubscriptLoad NameLoad Index Num UnaryOpUSub SubscriptLoad NameLoad Index Num Assert CompareLt Call AttributeLoad NameLoad attr BinOpAdd SubscriptLoad NameLoad Index Num Num Num Assert CompareLt Call AttributeLoad NameLoad attr BinOpSub SubscriptLoad NameLoad Index Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assert CompareIs Call NameLoad NameLoad NameLoad Assert CompareIs Call NameLoad SubscriptLoad NameLoad Index Num NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assert CompareIs Call NameLoad NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Assert CompareIn NameLoad ListLoad Str Str Str Str Assert BoolOpOr CompareIs Call NameLoad NameLoad NameLoad CompareIs Call NameLoad NameLoad AttributeLoad NameLoad attr Assert UnaryOpNot Call AttributeLoad NameLoad attr NameLoad Assert UnaryOpNot Call AttributeLoad NameLoad attr NameLoad If CompareIn NameLoad ListLoad Str Str Str body Assert CompareGt NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Assert CompareIs Call NameLoad NameLoad NameLoad Assert CompareEq Call NameLoad NameLoad Num For NameStore NameLoad body Assert CompareIs Call NameLoad NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Assert CompareIn NameLoad ListLoad Str Str Str Str Assert BoolOpOr CompareIs Call NameLoad NameLoad NameLoad CompareIs Call NameLoad NameLoad AttributeLoad NameLoad attr Assert UnaryOpNot Call AttributeLoad NameLoad attr NameLoad Assert UnaryOpNot Call AttributeLoad NameLoad attr NameLoad If CompareIn NameLoad ListLoad Str Str Str body Assert CompareGt NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Call NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assert CompareEq Call NameLoad NameLoad AttributeLoad NameLoad attr Assert CompareEq Call NameLoad NameLoad NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A crosscat.tests.component_model_extensions.ContinuousComponentModel ccmext N/A random N/A math N/A numpy N/A six N/A unittest main N/A N/A N/A N/A N/A N/A N/A unittest main N/A TestContinuousComponentModelExtensions_Constructors N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N 10 N/A N/A self N N N/A N/A N/A random seed 0 N/A N/A self X N/A N/A numpy array N/A N/A N/A N/A random normalvariate 0.0 1.0 N/A i N/A range N N/A N/A self params_good N/A dict rho 1.0 mu 0.0 N/A N/A self params_empty N/A dict N/A N/A self params_missing_rho N/A dict mu 0.0 N/A N/A self params_missing_mu N/A dict mu 0.0 N/A N/A self params_not_dict N/A 0.0 1.0 N/A N/A self params_negative_rho N/A dict rho -1.0 mu 0.0 N/A N/A self params_zero_rho N/A dict rho 0.0 mu 0.0 N/A N/A self hypers_good N/A dict mu 0.0 nu 1.0 r 1.0 s 1.0 N/A N/A self hypers_missing_mu N/A dict nu 1.0 r 1.0 s 1.0 N/A N/A self hypers_missing_nu N/A dict mu 0.0 r 1.0 s 1.0 N/A N/A self hypers_missing_r N/A dict mu 0.0 nu 1.0 s 1.0 N/A N/A self hypers_missing_s N/A dict mu 0.0 nu 1.0 r 1.0 N/A N/A self hypers_low_nu N/A dict mu 0.0 nu -1.0 r 1.0 s 1.0 N/A N/A self hypers_low_r N/A dict mu 0.0 nu 1.0 r -1.0 s 1.0 N/A N/A self hypers_low_s N/A dict mu 0.0 nu 1.0 r 1.0 s -1.0 N/A N/A self hypers_not_dict N/A 0 1 2 3 N/A test_from_parameters_contructor_with_good_complete_params_and_hypers N/A N/A self N/A N/A N/A m N/A N/A N/A ccmext p_ContinuousComponentModel from_parameters N/A self N data_params N/A self params_good hypers N/A self hypers_good gen_seed 0 N/A N/A m None N/A test_from_parameters_contructor_with_no_params_and_hypers N/A N/A self N/A N/A N/A m N/A N/A N/A ccmext p_ContinuousComponentModel from_parameters N/A self N gen_seed 0 N/A N/A m None N/A test_from_parameters_contructor_with_bad_params_and_good_hypers N/A N/A self N/A N/A N/A N/A N/A self assertRaises KeyError N/A N/A ccmext p_ContinuousComponentModel from_parameters N/A self N data_params N/A self params_empty hypers N/A self hypers_good gen_seed 0 N/A N/A N/A self assertRaises TypeError N/A N/A ccmext p_ContinuousComponentModel from_parameters N/A self N data_params N/A self params_not_dict hypers N/A self hypers_good gen_seed 0 N/A N/A N/A self assertRaises KeyError N/A N/A ccmext p_ContinuousComponentModel from_parameters N/A self N data_params N/A self params_missing_mu hypers N/A self hypers_good gen_seed 0 N/A N/A N/A self assertRaises KeyError N/A N/A ccmext p_ContinuousComponentModel from_parameters N/A self N data_params N/A self params_missing_rho hypers N/A self hypers_good gen_seed 0 N/A N/A N/A self assertRaises ValueError N/A N/A ccmext p_ContinuousComponentModel from_parameters N/A self N data_params N/A self params_negative_rho hypers N/A self hypers_good gen_seed 0 N/A N/A N/A self assertRaises ValueError N/A N/A ccmext p_ContinuousComponentModel from_parameters N/A self N data_params N/A self params_zero_rho hypers N/A self hypers_good gen_seed 0 N/A test_from_parameters_contructor_with_good_params_and_bad_hypers N/A N/A self N/A N/A N/A N/A N/A self assertRaises KeyError N/A N/A ccmext p_ContinuousComponentModel from_parameters N/A self N data_params N/A self params_good hypers N/A self hypers_missing_mu gen_seed 0 N/A N/A N/A self assertRaises KeyError N/A N/A ccmext p_ContinuousComponentModel from_parameters N/A self N data_params N/A self params_good hypers N/A self hypers_missing_nu gen_seed 0 N/A N/A N/A self assertRaises KeyError N/A N/A ccmext p_ContinuousComponentModel from_parameters N/A self N data_params N/A self params_good hypers N/A self hypers_missing_r gen_seed 0 N/A N/A N/A self assertRaises KeyError N/A N/A ccmext p_ContinuousComponentModel from_parameters N/A self N data_params N/A self params_good hypers N/A self hypers_missing_s gen_seed 0 N/A N/A N/A self assertRaises ValueError N/A N/A ccmext p_ContinuousComponentModel from_parameters N/A self N data_params N/A self params_good hypers N/A self hypers_low_nu gen_seed 0 N/A N/A N/A self assertRaises ValueError N/A N/A ccmext p_ContinuousComponentModel from_parameters N/A self N data_params N/A self params_good hypers N/A self hypers_low_r gen_seed 0 N/A N/A N/A self assertRaises ValueError N/A N/A ccmext p_ContinuousComponentModel from_parameters N/A self N data_params N/A self params_good hypers N/A self hypers_low_s gen_seed 0 N/A N/A N/A self assertRaises TypeError N/A N/A ccmext p_ContinuousComponentModel from_parameters N/A self N data_params N/A self params_good hypers N/A self hypers_not_dict gen_seed 0 N/A test_from_data_contructor_with_good_complete_hypers N/A N/A self N/A N/A N/A m N/A N/A N/A ccmext p_ContinuousComponentModel from_data N/A self X hypers N/A self hypers_good gen_seed 0 N/A N/A m None N/A test_from_data_contructor_with_no_params_and_hypers N/A N/A self N/A N/A N/A m N/A N/A N/A ccmext p_ContinuousComponentModel from_data N/A self X gen_seed 0 N/A N/A m None N/A test_from_data_contructor_with_bad_hypers N/A N/A self N/A N/A N/A N/A N/A self assertRaises KeyError N/A N/A ccmext p_ContinuousComponentModel from_data N/A self X hypers N/A self hypers_missing_mu gen_seed 0 N/A N/A N/A self assertRaises KeyError N/A N/A ccmext p_ContinuousComponentModel from_data N/A self X hypers N/A self hypers_missing_nu gen_seed 0 N/A N/A N/A self assertRaises KeyError N/A N/A ccmext p_ContinuousComponentModel from_data N/A self X hypers N/A self hypers_missing_r gen_seed 0 N/A N/A N/A self assertRaises KeyError N/A N/A ccmext p_ContinuousComponentModel from_data N/A self X hypers N/A self hypers_missing_s gen_seed 0 N/A N/A N/A self assertRaises ValueError N/A N/A ccmext p_ContinuousComponentModel from_data N/A self X hypers N/A self hypers_low_nu gen_seed 0 N/A N/A N/A self assertRaises ValueError N/A N/A ccmext p_ContinuousComponentModel from_data N/A self X hypers N/A self hypers_low_r gen_seed 0 N/A N/A N/A self assertRaises ValueError N/A N/A ccmext p_ContinuousComponentModel from_data N/A self X hypers N/A self hypers_low_s gen_seed 0 N/A N/A N/A self assertRaises TypeError N/A N/A ccmext p_ContinuousComponentModel from_data N/A self X hypers N/A self hypers_not_dict gen_seed 0 N/A N/A TestContinuousComponentModelExtensions_FromParametersConstructor N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N 10 N/A N/A N/A random seed 0 N/A N/A self X N/A N/A numpy array N/A N/A N/A N/A random normalvariate 0.0 1.0 N/A i N/A range N N/A N/A self component_model N/A N/A N/A ccmext p_ContinuousComponentModel from_parameters N gen_seed 0 N/A test_all_hyperparameters_intialized N/A N/A self N/A N/A N/A these_hyperparameters N/A N/A N/A self component_model get_hypers N/A hyperparameter N/A mu nu r s N/A N/A N/A hyperparameter these_hyperparameters N/A test_all_suffstats_intialized N/A N/A self N/A N/A N/A these_suffstats N/A N/A N/A self component_model get_suffstats N/A suffstat N/A sum_x sum_x_squared N/A N/A N/A suffstat these_suffstats N/A test_draw_component_model_params N/A N/A self N/A N/A N/A draw N/A N/A N/A self component_model sample_parameters_given_hyper N/A N/A N/A type draw dict N/A model_parameter_bounds N/A N/A N/A self component_model get_model_parameter_bounds N/A N/A key value N/A N/A six iteritems draw N/A N/A N/A key N/A mu rho N/A N/A N/A N/A type value float N/A N/A type value N/A numpy float64 N/A N/A N/A N/A math isnan value N/A N/A N/A N/A math isinf value N/A N/A key rho N/A N/A N/A value 0.0 N/A test_uncollapsed_likelihood N/A N/A self N/A N/A N/A ans -14.2483386101 N/A log_likelihood N/A N/A N/A self component_model uncollapsed_likelihood N/A self X N/A mu rho 0.0 1.0 N/A N/A log_likelihood 0.0 N/A N/A N/A N/A math fabs N/A ans log_likelihood 1e-08 N/A N/A TestContinuousComponentModelExtensions_FromDataConstructor N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N 10 N/A N/A N/A random seed 0 N/A N/A self X N/A N/A numpy array N/A N/A N/A N/A random normalvariate 0.0 1.0 N/A i N/A range N N/A N/A self component_model N/A N/A N/A ccmext p_ContinuousComponentModel from_data N/A self X gen_seed 0 N/A test_all_hyperparameters_intialized N/A N/A self N/A N/A N/A these_hyperparameters N/A N/A N/A self component_model get_hypers N/A hyperparameter N/A mu nu r s N/A N/A N/A hyperparameter these_hyperparameters N/A test_all_suffstats_intialized N/A N/A self N/A N/A N/A these_suffstats N/A N/A N/A self component_model get_suffstats N/A suffstat N/A sum_x sum_x_squared N/A N/A N/A suffstat these_suffstats N/A test_draw_component_model_params N/A N/A self N/A N/A N/A draw N/A N/A N/A self component_model sample_parameters_given_hyper N/A N/A N/A type draw dict N/A N/A key value N/A N/A six iteritems draw N/A N/A N/A key N/A mu rho N/A N/A N/A N/A type value float N/A N/A type value N/A numpy float64 N/A N/A N/A N/A math isnan value N/A N/A N/A N/A math isinf value N/A N/A key rho N/A N/A N/A value 0.0 N/A test_uncollapsed_likelihood N/A N/A self N/A N/A N/A ans -20.9712953283 N/A log_likelihood N/A N/A N/A self component_model uncollapsed_likelihood N/A self X N/A mu rho 0.0 1.0 N/A N/A log_likelihood 0.0 N/A N/A N/A N/A math fabs N/A ans log_likelihood 1e-08 N/A N/A TestContinuousComponentModelExtensions_static N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N 10 N/A N/A N/A random seed 0 N/A N/A self X N/A N/A numpy array N/A N/A N/A N/A random normalvariate 0.0 1.0 N/A i N/A range N N/A N/A self component_class N/A ccmext p_ContinuousComponentModel N/A test_log_likelihood N/A N/A self N/A N/A N/A X_1 N/A N/A numpy array N/A N/A 1 N/A 0 N/A parameters N/A dict mu 0.0 rho 1.0 N/A log_likelihood N/A N/A N/A self component_class log_likelihood X_1 parameters N/A N/A log_likelihood 0.0 N/A N/A N/A N/A math fabs N/A -2.33787706641 log_likelihood 1e-08 N/A parameters N/A dict mu 2.2 rho 12.1 N/A log_likelihood N/A N/A N/A self component_class log_likelihood X_1 parameters N/A N/A log_likelihood 0.0 N/A N/A N/A N/A math fabs N/A -37.3386716138 log_likelihood 1e-08 N/A test_log_pdf N/A N/A self N/A N/A N/A X_1 N/A N/A numpy array N/A N/A 1 N/A 0 N/A parameters N/A dict mu 0.0 rho 1.0 N/A log_pdf N/A N/A N/A self component_class log_pdf X_1 parameters N/A N/A N/A len log_pdf 2 N/A N/A N/A N/A math fabs N/A -1.4189385332 N/A log_pdf N/A N/A 0 0 1e-08 N/A N/A N/A N/A math fabs N/A -0.918938533205 N/A log_pdf N/A N/A 1 0 1e-08 N/A parameters N/A dict mu 2.2 rho 12.1 N/A log_pdf N/A N/A N/A self component_class log_pdf X_1 parameters N/A N/A N/A len log_pdf 2 N/A N/A N/A N/A math fabs N/A -8.3843358069 N/A log_pdf N/A N/A 0 0 1e-08 N/A N/A N/A N/A math fabs N/A -28.9543358069 N/A log_pdf N/A N/A 1 0 1e-08 N/A parameters N/A dict mu 0.0 rho 1.0 N/A lspc N/A N/A numpy linspace 0 10 num 20 N/A X_2 N/A N/A numpy array N/A N/A x N/A x lspc N/A log_pdf N/A N/A N/A self component_class log_pdf X_2 parameters N/A N/A N/A len log_pdf 20 N/A n N/A range 1 20 N/A N/A N/A N/A log_pdf N/A N/A N/A n 1 0 N/A log_pdf N/A N/A n 0 N/A test_generate_discrete_support N/A N/A self N/A N/A N/A parameters N/A dict mu 0.0 rho 1.0 N/A support N/A N/A N/A self component_class generate_discrete_support parameters support 0.95 nbins 100 N/A N/A N/A type support list N/A N/A N/A len support 100 N/A N/A N/A support N/A 0 N/A N/A support N/A -1 N/A N/A N/A support N/A 49 N/A N/A support N/A 50 N/A N/A N/A N/A math fabs N/A N/A support N/A 0 1.95996398454 1e-08 N/A N/A N/A N/A math fabs N/A N/A support N/A -1 1.95996398454 1e-08 N/A test_draw_component_model_hyperparameters_single N/A N/A self N/A N/A N/A draw_list N/A N/A N/A self component_class draw_hyperparameters N/A self X N/A N/A N/A type draw_list list N/A N/A N/A type N/A draw_list N/A 0 dict N/A draw N/A draw_list N/A 0 N/A N/A N/A type draw dict N/A N/A key value N/A N/A six iteritems draw N/A N/A N/A key N/A mu nu r s N/A N/A N/A N/A type value float N/A N/A type value N/A numpy float64 N/A N/A N/A N/A math isnan value N/A N/A N/A N/A math isinf value N/A N/A key N/A nu s r N/A N/A N/A value 0.0 N/A test_draw_component_model_hyperparameters_multiple N/A N/A self N/A N/A N/A n_draws 3 N/A draw_list N/A N/A N/A self component_class draw_hyperparameters N/A self X n_draws n_draws N/A N/A N/A type draw_list list N/A N/A N/A len draw_list 3 N/A draw draw_list N/A N/A N/A N/A type draw dict N/A N/A key value N/A N/A six iteritems draw N/A N/A N/A key N/A mu nu r s N/A N/A N/A N/A type value float N/A N/A type value N/A numpy float64 N/A N/A N/A N/A math isnan value N/A N/A N/A N/A math isinf value N/A N/A key N/A nu s r N/A N/A N/A value 0.0 N/A test_generate_data_from_parameters N/A N/A self N/A N/A N/A N 10 N/A parameters N/A dict mu 0.0 rho 1.0 N/A X N/A N/A N/A self component_class generate_data_from_parameters parameters N N/A N/A N/A type X N/A numpy ndarray N/A N/A N/A len X N N/A N/A N/A N/A __name__ __main__ N/A N/A N/A main