def maxlike(self, p0, **kwargs):
def fn(p):<EOL><INDENT>return -self.lnpost(p)<EOL><DEDENT>if '<STR_LIT>' not in kwargs:<EOL><INDENT>kwargs['<STR_LIT>'] = '<STR_LIT>'<EOL><DEDENT>p0 = [<NUM_LIT>, <NUM_LIT>, <NUM_LIT:0.0>, <NUM_LIT:200>, <NUM_LIT>]<EOL>fit = scipy.optimize.minimize(fn, p0, **kwargs)<EOL>return fit<EOL>
Finds (local) optimum in parameter space.