Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias identifier ImportFrom alias ImportFrom alias If CompareNotIn Str AttributeLoad NameLoad attr body Import alias Expr Call AttributeLoad NameLoad attr Str ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias alias alias alias Assign NameStore Call NameLoad Str ListLoad Str Str Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Dict body Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr Assign NameStore ListLoad 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 ListLoad Num Assign NameStore Call NameLoad ListLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Dict body Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body With Call AttributeLoad NameLoad attr NameLoad Str NameStore body Print Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Num Assign NameStore SubscriptLoad NameLoad Slice UnaryOpUSub NameLoad Assign NameStore SubscriptLoad NameLoad Slice NameLoad FunctionDef arguments args NameParam defaults body Print Str Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr 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 Call AttributeLoad NameLoad attr ListLoad Num NameLoad Assign NameStore Call NameLoad ListLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list Assign NameStore ListLoad Num Num Num Num Assign NameStore ListLoad Assign NameStore ListLoad For NameStore NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Print Str NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Print Str NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameStore body Print Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Dict body Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body With Call AttributeLoad NameLoad attr NameLoad Str NameStore body Print Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call NameLoad BinOpMult Num Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Slice UnaryOpUSub NameLoad Assign NameStore SubscriptLoad NameLoad Slice NameLoad FunctionDef arguments args NameParam defaults body Print Str Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr 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 Call AttributeLoad NameLoad attr ListLoad Num NameLoad Assign NameStore Call NameLoad ListLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list Assign NameStore ListLoad Num Num Num Num Assign NameStore ListLoad Assign NameStore ListLoad For NameStore NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Print Str NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Print Str NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameStore body Print Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Dict NameLoad Num BinOpMult BinOpMult Num Num Num body Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body With Call AttributeLoad NameLoad attr NameLoad Str NameStore body Print Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Print Str Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore ListLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Num For NameStore Call NameLoad NameLoad keyword Num body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpSub Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If CompareGt Call AttributeLoad NameLoad attr NameLoad NameLoad body Break 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 NameLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameStore body Print Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Dict NameLoad Num BinOpMult BinOpMult Num Num Num body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body With Call AttributeLoad NameLoad attr NameLoad Str NameStore body Print Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Print Str Assign NameStore Call NameLoad NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore ListLoad Num For NameStore Call NameLoad NameLoad keyword Num body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpSub Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If CompareGt Call AttributeLoad NameLoad attr NameLoad NameLoad body Break 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 NameLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameStore body Print Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Dict NameLoad Num BinOpMult BinOpMult Num Num Num body Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body With Call AttributeLoad NameLoad attr NameLoad Str NameStore body Print Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Print Str Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Num For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpSub Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If CompareGt Call AttributeLoad NameLoad attr NameLoad NameLoad body Break 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 NameLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameStore body Print Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Dict NameLoad Num BinOpMult BinOpMult Num Num Num Num Num body Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body With Call AttributeLoad NameLoad attr NameLoad Str NameStore body Print Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Print Str Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num Assign NameStore BinOpPow BinOpAdd Call AttributeLoad NameLoad attr NameLoad NameLoad UnaryOpUSub NameLoad Assign NameStore ListLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Num For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr BinOpSub Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If CompareGt Call AttributeLoad NameLoad attr NameLoad NameLoad body Break 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 NameLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameStore body Print Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Return NameLoad decorator_list FunctionDef arguments args defaults body Raise NameLoad decorator_list
N/A N/A 
Test harness for fitting the competing models.
 N/A time N/A cPickle N/A copy N/A os N/A gzip N/A numpy np collections namedtuple pybasicbayes.util.text progprint_xrange N/A N/A DISPLAY N/A os environ N/A N/A matplotlib N/A N/A N/A matplotlib use Agg pyhawkes.utils.utils convert_discrete_to_continuous pyhawkes.models DiscreteTimeNetworkHawkesModelGammaMixture DiscreteTimeNetworkHawkesModelGammaMixtureSBM DiscreteTimeNetworkHawkesModelSpikeAndSlab ContinuousTimeNetworkHawkesModel pyhawkes.standard_models ReluNonlinearHawkesProcess StandardHawkesProcess ExpNonlinearHawkesProcess HomogeneousPoissonProcess N/A Results N/A namedtuple Results N/A samples timestamps lps test_lls fit_homogeneous_pp_model N/A N/A S S_test dt dt_max output_path model_args N/A N/A N/A N/A N/A T K N/A S shape N/A test_model N/A HomogeneousPoissonProcess K K dt dt dt_max dt_max model_args N/A N/A N/A test_model add_data S N/A N/A N/A test_model initialize_to_background_rate N/A lps N/A N/A N/A test_model log_likelihood N/A hlls N/A N/A N/A test_model heldout_log_likelihood S_test N/A lps N/A N/A np array lps N/A hlls N/A N/A np array hlls N/A timestamps N/A N/A np array N/A 0 N/A results N/A Results N/A N/A N/A test_model copy_sample timestamps lps hlls N/A results N/A fit_standard_hawkes_model_bfgs N/A N/A S S_test dt dt_max output_path standard_model model_args N/A None N/A N/A N/A N/A T K N/A S shape N/A N/A N/A N/A os path exists output_path N/A N/A N/A N/A gzip open output_path r f N/A N/A Loading standard BFGS results from  output_path N/A results N/A N/A cPickle load f N/A N/A xv_len 1000 N/A S_train N/A S N/A N/A xv_len N/A S_xv N/A S N/A xv_len _fit N/A N/A lmbda N/A N/A N/A Fitting a standard Hawkes model using BFGS N/A test_model N/A StandardHawkesProcess K K dt dt dt_max dt_max lmbda lmbda model_args N/A N/A N/A test_model add_data S_train N/A N/A N/A test_model initialize_to_background_rate N/A lps N/A N/A N/A test_model log_likelihood N/A hlls N/A N/A N/A test_model heldout_log_likelihood S_test N/A tic N/A N/A time clock N/A N/A N/A test_model fit_with_bfgs N/A init_time N/A N/A N/A time clock tic N/A N/A N/A lps append N/A N/A test_model log_likelihood N/A N/A N/A hlls append N/A N/A test_model heldout_log_likelihood S_test N/A lps N/A N/A np array lps N/A hlls N/A N/A np array hlls N/A timestamps N/A N/A np array N/A 0 init_time N/A results N/A Results N/A N/A N/A test_model copy_sample timestamps lps hlls N/A xv_ll N/A N/A test_model heldout_log_likelihood S_xv N/A N/A xv_ll results N/A N/A lmbdas N/A 0.1 1.0 5.0 10.0 N/A xv_lls N/A N/A xv_results N/A N/A lmbda lmbdas N/A N/A N/A xv_ll results N/A _fit lmbda N/A N/A N/A xv_lls append xv_ll N/A N/A N/A xv_results append results N/A N/A lmbda xv_ll N/A zip lmbdas xv_lls N/A N/A Lambda:  lmbda 	XV LL:  xv_ll N/A best N/A N/A np argmax xv_lls N/A results N/A xv_results N/A best N/A Best:  best N/A N/A N/A gzip open output_path w f N/A N/A Saving std BFGS results to  output_path N/A N/A N/A cPickle dump results f protocol -1 N/A results N/A fit_nonlinear_hawkes_model_bfgs N/A N/A S S_test dt dt_max output_path model_args N/A N/A N/A N/A N/A T K N/A S shape N/A N/A N/A N/A os path exists output_path N/A N/A N/A N/A gzip open output_path r f N/A N/A Loading nonlinear BFGS results from  output_path N/A results N/A N/A cPickle load f N/A N/A xv_len N/A int N/A 0.01 N/A len S N/A S_train N/A S N/A N/A xv_len N/A S_xv N/A S N/A xv_len _fit N/A N/A lmbda N/A N/A N/A Fitting a nonlinear Hawkes model using BFGS N/A test_model N/A ReluNonlinearHawkesProcess K K dt dt dt_max dt_max lmbda lmbda model_args N/A N/A N/A test_model add_data S_train N/A N/A N/A test_model initialize_to_background_rate N/A lps N/A N/A N/A test_model log_likelihood N/A hlls N/A N/A N/A test_model heldout_log_likelihood S_test N/A tic N/A N/A time clock N/A N/A N/A test_model fit_with_bfgs N/A init_time N/A N/A N/A time clock tic N/A N/A N/A lps append N/A N/A test_model log_likelihood N/A N/A N/A hlls append N/A N/A test_model heldout_log_likelihood S_test N/A lps N/A N/A np array lps N/A hlls N/A N/A np array hlls N/A timestamps N/A N/A np array N/A 0 init_time N/A results N/A Results N/A N/A N/A test_model copy_sample timestamps lps hlls N/A xv_ll N/A N/A test_model heldout_log_likelihood S_xv N/A N/A xv_ll results N/A N/A lmbdas N/A 0.1 1.0 5.0 10.0 N/A xv_lls N/A N/A xv_results N/A N/A lmbda lmbdas N/A N/A N/A xv_ll results N/A _fit lmbda N/A N/A N/A xv_lls append xv_ll N/A N/A N/A xv_results append results N/A N/A lmbda xv_ll N/A zip lmbdas xv_lls N/A N/A Lambda:  lmbda 	XV LL:  xv_ll N/A best N/A N/A np argmax xv_lls N/A results N/A xv_results N/A best N/A Best:  best N/A N/A N/A gzip open output_path w f N/A N/A Saving nonlinear BFGS results to  output_path N/A N/A N/A cPickle dump results f protocol -1 N/A results N/A fit_spikeslab_network_hawkes_gibbs N/A N/A S S_test dt dt_max output_path model_args standard_model N_samples time_limit N/A N/A None 100 N/A N/A 8 60 60 N/A N/A N/A T K N/A S shape N/A N/A N/A N/A os path exists output_path N/A N/A N/A N/A gzip open output_path r f N/A N/A Loading Gibbs results from  output_path N/A results N/A N/A cPickle load f N/A N/A Fitting the data with a network Hawkes model using Gibbs sampling N/A test_model N/A DiscreteTimeNetworkHawkesModelSpikeAndSlab K K dt dt dt_max dt_max model_args N/A N/A N/A test_model add_data S N/A N/A standard_model None N/A N/A N/A N/A test_model initialize_with_standard_model standard_model N/A F_test N/A N/A N/A test_model basis convolve_with_basis S_test N/A samples N/A N/A lps N/A N/A N/A test_model log_probability N/A hlls N/A N/A N/A test_model heldout_log_likelihood S_test N/A times N/A 0 N/A _ N/A progprint_xrange N_samples perline 10 N/A N/A tic N/A N/A time time N/A N/A N/A test_model resample_model N/A N/A N/A samples append N/A N/A copy deepcopy N/A N/A test_model get_parameters N/A N/A N/A times append N/A N/A N/A time time tic N/A N/A N/A hlls append N/A N/A test_model heldout_log_likelihood S_test F F_test N/A N/A N/A N/A np sum times time_limit N/A N/A N/A timestamps N/A N/A np cumsum times N/A lps N/A N/A np array lps N/A hlls N/A N/A np array hlls N/A results N/A Results samples timestamps lps hlls N/A N/A N/A gzip open output_path w f N/A N/A Saving Gibbs samples to  output_path N/A N/A N/A cPickle dump results f protocol -1 N/A results N/A fit_ct_network_hawkes_gibbs N/A N/A S S_test dt dt_max output_path model_args standard_model N_samples time_limit N/A N/A None 100 N/A N/A 8 60 60 N/A N/A K N/A N/A S shape N/A 1 N/A N/A S_ct C_ct T N/A convert_discrete_to_continuous S dt N/A N/A S_test_ct C_test_ct T_test N/A convert_discrete_to_continuous S_test dt N/A N/A N/A N/A os path exists output_path N/A N/A N/A N/A gzip open output_path r f N/A N/A Loading Gibbs results from  output_path N/A results N/A N/A cPickle load f N/A N/A Fitting the data with a continuous time network Hawkes model using Gibbs sampling N/A test_model N/A ContinuousTimeNetworkHawkesModel K dt_max dt_max model_args N/A N/A N/A test_model add_data S_ct C_ct T N/A N/A standard_model None N/A N/A N/A N/A test_model initialize_with_standard_model standard_model N/A samples N/A N/A lps N/A N/A N/A test_model log_probability N/A hlls N/A N/A N/A test_model heldout_log_likelihood S_test_ct C_test_ct T_test N/A times N/A 0 N/A _ N/A progprint_xrange N_samples perline 25 N/A N/A tic N/A N/A time time N/A N/A N/A test_model resample_model N/A N/A N/A times append N/A N/A N/A time time tic N/A N/A N/A samples append N/A N/A copy deepcopy N/A N/A test_model get_parameters N/A N/A N/A hlls append N/A N/A test_model heldout_log_likelihood S_test_ct C_test_ct T_test N/A N/A N/A N/A np sum times time_limit N/A N/A N/A timestamps N/A N/A np cumsum times N/A lps N/A N/A np array lps N/A hlls N/A N/A np array hlls N/A results N/A Results samples timestamps lps hlls N/A N/A N/A gzip open output_path w f N/A N/A Saving Gibbs samples to  output_path N/A N/A N/A cPickle dump results f protocol -1 N/A results N/A fit_network_hawkes_vb N/A N/A S S_test dt dt_max output_path model_args standard_model N_samples time_limit N/A N/A None 100 N/A N/A 8 60 60 N/A N/A N/A T K N/A S shape N/A N/A N/A N/A os path exists output_path N/A N/A N/A N/A gzip open output_path r f N/A N/A Loading VB results from  output_path N/A results N/A N/A cPickle load f N/A N/A Fitting the data with a network Hawkes model using batch VB N/A test_model N/A DiscreteTimeNetworkHawkesModelGammaMixtureSBM K K dt dt dt_max dt_max model_args N/A N/A N/A test_model add_data S N/A N/A standard_model None N/A N/A N/A N/A test_model initialize_with_standard_model standard_model N/A F_test N/A N/A N/A test_model basis convolve_with_basis S_test N/A N/A standard_model None N/A N/A N/A N/A test_model initialize_with_standard_model standard_model N/A samples N/A N/A lps N/A N/A N/A test_model log_probability N/A hlls N/A N/A N/A test_model heldout_log_likelihood S_test N/A times N/A 0 N/A itr N/A progprint_xrange N_samples N/A N/A tic N/A N/A time time N/A N/A N/A test_model meanfield_coordinate_descent_step N/A N/A N/A times append N/A N/A N/A time time tic N/A N/A N/A test_model resample_from_mf N/A N/A N/A samples append N/A N/A copy deepcopy N/A N/A test_model get_parameters N/A N/A N/A hlls append N/A N/A test_model heldout_log_likelihood S_test F F_test N/A N/A N/A N/A np sum times time_limit N/A N/A N/A timestamps N/A N/A np cumsum times N/A lps N/A N/A np array lps N/A hlls N/A N/A np array hlls N/A results N/A Results samples timestamps lps hlls N/A N/A N/A gzip open output_path w f N/A N/A Saving VB samples to  output_path N/A N/A N/A cPickle dump results f protocol -1 N/A results N/A fit_network_hawkes_svi N/A N/A S S_test dt dt_max output_path model_args standard_model N_samples time_limit delay forgetting_rate N/A N/A None 100 N/A N/A 8 60 60 10.0 0.25 N/A N/A N/A T K N/A S shape N/A N/A N/A N/A os path exists output_path N/A N/A N/A N/A gzip open output_path r f N/A N/A Loading SVI results from  output_path N/A results N/A N/A cPickle load f N/A N/A Fitting the data with a network Hawkes model using SVI N/A test_model N/A DiscreteTimeNetworkHawkesModelGammaMixtureSBM K K dt dt dt_max dt_max model_args N/A N/A N/A test_model add_data S N/A N/A standard_model None N/A N/A N/A N/A test_model initialize_with_standard_model standard_model N/A F_test N/A N/A N/A test_model basis convolve_with_basis S_test N/A N/A standard_model None N/A N/A N/A N/A test_model initialize_with_standard_model standard_model N/A minibatchsize 3000 N/A stepsize N/A N/A N/A N/A np arange N_samples delay N/A forgetting_rate N/A samples N/A N/A lps N/A N/A N/A test_model log_probability N/A hlls N/A N/A N/A test_model heldout_log_likelihood S_test N/A times N/A 0 N/A itr N/A progprint_xrange N_samples N/A N/A tic N/A N/A time time N/A N/A N/A test_model sgd_step minibatchsize minibatchsize stepsize N/A stepsize N/A itr N/A N/A N/A times append N/A N/A N/A time time tic N/A N/A N/A test_model resample_from_mf N/A N/A N/A samples append N/A N/A copy deepcopy N/A N/A test_model get_parameters N/A N/A N/A hlls append N/A N/A test_model heldout_log_likelihood S_test F F_test N/A N/A N/A N/A np sum times time_limit N/A N/A N/A timestamps N/A N/A np cumsum times N/A lps N/A N/A np array lps N/A hlls N/A N/A np array hlls N/A results N/A Results samples timestamps lps hlls N/A N/A N/A gzip open output_path w f N/A N/A Saving SVI samples to  output_path N/A N/A N/A cPickle dump results f protocol -1 N/A results N/A fit_poisson_glm N/A N/A N/A N/A N/A NotImplementedError N/A