Exemplo n.º 1
0
 def __call__(self, **kwargs):
     self.set(**kwargs)
     self.checkSanity()
     mcmc.use_unimap = True
     mcmc.mapping_move_weight = self.mapping_move_weight
     mcmc.unimap_fast_nni_move_weight = self.unimap_fast_nni_move_weight
     mcmc.unimap_nni_move_weight = self.unimap_nni_move_weight
     mcmc.unimap_thread_count = self.unimap_thread_count
     mcmc.unimap_ls_move_weight = self.unimap_ls_move_weight
     mcmc.unimap_sample_ambig_move_weight = self.unimap_sample_ambig_move_weight
     mcmc.unimap_node_slide_move_weight = self.unimap_node_slide_move_weight
     mcmc.unimap_edge_move_weight = self.unimap_edge_move_weight
     mcmc()
Exemplo n.º 2
0
 def __call__(self, **kwargs):
     self.set(**kwargs)
     self.checkSanity()
     c = copy.deepcopy(self)
     cpo_impl = CPOImpl(c)
     cpo_impl.siteLikeFileOpen()
     if cpo_impl.sitelikef is not None:
         mcmc.sitelikef = cpo_impl.sitelikef
         mcmc.saving_sitelikes = True
         mcmc()
         mcmc.saving_sitelikes = False
         cpo_impl.siteLikeFileClose()
     else:
         print "Could not run the cpo command because the sitelike file could not be opened"
Exemplo n.º 3
0
 def __call__(self, **kwargs):
     self.set(**kwargs)
     self.checkSanity()
     mcmc.doing_steppingstone_sampling = True
     mcmc.ssobj = self
     if self.ti:
         mcmc.ss_heating_likelihood = True
     else:
         mcmc.ss_heating_likelihood = False
     mcmc()
     mcmc.ss_heating_likelihood = False
     mcmc.doing_steppingstone_sampling = False
     mcmc.ssobj = None
     self.sampled_betas = mcmc.ss_sampled_betas
     self.sampled_likes = mcmc.ss_sampled_likes
Exemplo n.º 4
0
    def __call__(self, **kwargs):
        self.set(**kwargs)
        self.checkSanity()

        prev_report_every = mcmc.report_every
        mcmc.report_every = self.report_every

        prev_sample_every = mcmc.sample_every
        mcmc.sample_every = self.sample_every

        mcmc.doing_steppingstone_sampling = True
        mcmc.ssobj = self
        mcmc.ss_heating_likelihood = False
        if self.refdist_is_prior:
            mcmc.ss_heating_likelihood = True   # performing TI and non-generalized SS
        mcmc()
        mcmc.ss_heating_likelihood = False
        mcmc.doing_steppingstone_sampling = False
        mcmc.ssobj = None
        self.sampled_betas = mcmc.ss_sampled_betas
        self.sampled_likes = mcmc.ss_sampled_likes

        mcmc.report_every = prev_report_every
        mcmc.sample_every = prev_sample_every