Module Import alias Import alias identifier Import alias identifier ImportFrom alias alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpPow Num Num Print Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Dict Str Str NameLoad BinOpDiv Num NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Assign NameStore Dict Str Str NameLoad BinOpDiv Num NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Num Assign NameStore ListLoad Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body If CompareEq BinOpMod NameLoad Num Num body Print Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ListComp NameLoad comprehension TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameLoad Print Str AttributeLoad AttributeLoad NameLoad attr attr Print Str SubscriptLoad NameLoad ExtSlice Slice Num Slice Assign NameStore ListLoad Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list Expr Call NameLoad
N/A N/A copy N/A numpy np N/A matplotlib.pyplot plt sklearn.metrics adjusted_mutual_info_score adjusted_rand_score pyhawkes.models DiscreteTimeNetworkHawkesModelSpikeAndSlab pyhawkes.plotting.plotting plot_network test_gibbs_sbm N/A N/A seed N/A None N/A N/A 
    Create a discrete time Hawkes model and generate from it.

    :return:
     N/A N/A seed None N/A N/A seed N/A N/A N/A np random randint N/A 2 32 N/A Setting seed to  seed N/A N/A N/A N/A np random seed seed N/A C 10 N/A K 100 N/A T 1000 N/A dt 1.0 N/A B 3 N/A network_hypers N/A C beta C N/A 1.0 K N/A true_model N/A DiscreteTimeNetworkHawkesModelSpikeAndSlab K K dt dt B B network_hypers network_hypers N/A c N/A N/A true_model network c N/A perm N/A N/A np argsort c N/A N/A N/A plt ion N/A N/A plot_network N/A N/A N/A true_model weight_model A N/A N/A N/A np ix_ perm perm N/A N/A N/A true_model weight_model W N/A N/A N/A np ix_ perm perm N/A N/A N/A plt pause 0.001 N/A network_hypers N/A C beta C N/A 1.0 K N/A test_model N/A DiscreteTimeNetworkHawkesModelSpikeAndSlab K K dt dt B B network_hypers network_hypers N/A N_samples 10 N/A samples N/A N/A lps N/A N/A itr N/A xrange N_samples N/A N/A N/A N/A itr 5 0 N/A N/A Iteration:  itr 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 lps append N/A N/A test_model log_probability N/A N/A N/A N/A test_model network resample N/A N/A N/A true_model weight_model A N/A N/A true_model weight_model W N/A N/A N/A plt ioff N/A c_samples N/A N/A np array N/A c N/A N/A _ _ _ _ c _ _ _ samples N/A True c:  N/A N/A true_model network c N/A Test c:  N/A c_samples N/A N/A -10 N/A N/A amis N/A N/A arss N/A N/A c c_samples N/A N/A N/A N/A amis append N/A adjusted_mutual_info_score N/A N/A true_model network c c N/A N/A N/A arss append N/A adjusted_rand_score N/A N/A true_model network c c N/A N/A N/A plt figure N/A N/A N/A plt plot N/A N/A np arange N_samples amis -r N/A N/A N/A plt plot N/A N/A np arange N_samples arss -b N/A N/A N/A plt xlabel Iteration N/A N/A N/A plt ylabel Clustering score N/A N/A N/A plt show N/A N/A N/A test_gibbs_sbm