Esempio n. 1
0
 def construct_proposal(self, y):
     # fixed proposal exists from a certain iteration, return std MH otherwise
     # was created in adapt method
     if self.proposal is not None:
         return self.proposal
     else:
         return StandardMetropolis.construct_proposal(self, y)
Esempio n. 2
0
 def construct_proposal(self, y):
     # fixed proposal exists from a certain iteration, return std MH otherwise
     # was created in adapt method
     if self.proposal is not None:
         return self.proposal
     else:
         return StandardMetropolis.construct_proposal(self, y)