예제 #1
0
파일: Model.py 프로젝트: TerryLew/BinLOTlib
 def __init__(self, *args, **kwargs):
     # Since we use flip, this must be an argument of a 'context' C that will manage the randomness. Note that
     # C is the last argument, so Cfirst=False below
     RecursiveLOTHypothesis.__init__(self,
                                     grammar=grammar,
                                     display="lambda recurse_, C: %s",
                                     *args,
                                     **kwargs)
예제 #2
0
파일: Model.py 프로젝트: TerryLew/BinLOTlib
 def __init__(self, grammar=None, value=None, f=None, gamma=-30, **kwargs):
     RecursiveLOTHypothesis.__init__(self,
                                     grammar,
                                     value=value,
                                     f=f,
                                     **kwargs)
     self.gamma = gamma
     self.lg1mgamma = log1mexp(gamma)
예제 #3
0
 def __call__(self, *args):
     """
     The main calling function. Resets recursive_call_depth and then calls
     """
     try:
         return RecursiveLOTHypothesis.__call__(self, *args)
     except RecursionDepthException:
         return ''
예제 #4
0
파일: search2.py 프로젝트: joshrule/LOTlib
 def __call__(self, *args):
     """
     The main calling function. Resets recursive_call_depth and then calls
     """
     try:
         return RecursiveLOTHypothesis.__call__(self, *args)
     except RecursionDepthException:
         return ""
예제 #5
0
 def __call__(self, *args):
     try:
         return RecursiveLOTHypothesis.__call__(self, *args)
     except RecursionDepthException:
         return ''
예제 #6
0
 def __init__(self, grammar=None, **kwargs):
     RecursiveLOTHypothesis.__init__(self, grammar=grammar, **kwargs)
예제 #7
0
 def __init__(self, grammar=None, **kwargs):
     RecursiveLOTHypothesis.__init__(self, grammar, args=[], recurse_bound=25, maxnodes=100, **kwargs)
 def __init__(self, grammar=None, display="lambda recurse_: %s", **kwargs):
     RecursiveLOTHypothesis.__init__(self,
                                     grammar=grammar,
                                     display=display,
                                     **kwargs)
예제 #9
0
 def __init__(self, grammar=None, display="lambda recurse_: %s", **kwargs):
     RecursiveLOTHypothesis.__init__(self, grammar=grammar, display=display, **kwargs)
예제 #10
0
 def __call__(self, *args):
     try:
         return RecursiveLOTHypothesis.__call__(self, *args)
     except RecursionDepthException:
         return ''
예제 #11
0
파일: search2.py 프로젝트: joshrule/LOTlib
 def __init__(self, grammar=base_grammar, **kwargs):
     RecursiveLOTHypothesis.__init__(self, grammar, **kwargs)
예제 #12
0
 def __init__(self, grammar=None, value=None, f=None, args=['x'], **kwargs):
     RecursiveLOTHypothesis.__init__(self, grammar, value=value, args=['x'], **kwargs)
예제 #13
0
 def __init__(self, grammar=base_grammar, **kwargs):
     RecursiveLOTHypothesis.__init__(self, grammar, **kwargs)
예제 #14
0
 def __init__(self, grammar, value=None, f=None, proposal_function=None, args=['x'], **kwargs):
     RecursiveLOTHypothesis.__init__(self, grammar, value=value, proposal_function=proposal_function, args=['x'], **kwargs)
예제 #15
0
 def __init__(self, grammar=None, **kwargs):
     RecursiveLOTHypothesis.__init__(self, grammar, args=[], recurse_bound=20, maxnodes=100, **kwargs)
예제 #16
0
파일: Model.py 프로젝트: piantado/LOTlib
 def __init__(self, grammar=None, value=None, f=None, gamma=-30, **kwargs):
     RecursiveLOTHypothesis.__init__(self, grammar, value=value, f=f, **kwargs)
     self.gamma = gamma
     self.lg1mgamma = log1mexp(gamma)
예제 #17
0
파일: Model.py 프로젝트: piantado/LOTlib
 def __call__(self, *args):
     try:
         return RecursiveLOTHypothesis.__call__(self, *args)
     except EvaluationException:  # catch recursion and too big
         return None
예제 #18
0
파일: Model.py 프로젝트: TerryLew/BinLOTlib
 def __call__(self, *args):
     try:
         return RecursiveLOTHypothesis.__call__(self, *args)
     except EvaluationException:  # catch recursion and too big
         return None
예제 #19
0
파일: Model.py 프로젝트: piantado/LOTlib
 def __init__(self, *args, **kwargs):
     # Since we use flip, this must be an argument of a 'context' C that will manage the randomness. Note that
     # C is the last argument, so Cfirst=False below
     RecursiveLOTHypothesis.__init__(self, grammar=grammar, display="lambda recurse_, C: %s", *args, **kwargs)
예제 #20
0
 def __init__(self, grammar=None, **kwargs):
     RecursiveLOTHypothesis.__init__(self, grammar=grammar, **kwargs)