def fit_multinest(self, n_live_points=<NUM_LIT:1000>, basename='<STR_LIT>',<EOL>verbose=True, refit=False, overwrite=False,<EOL>**kwargs):
folder = os.path.abspath(os.path.dirname(basename))<EOL>if not os.path.exists(folder):<EOL><INDENT>os.makedirs(folder)<EOL><DEDENT>prop_nomatch = False<EOL>propfile = '<STR_LIT>'.format(basename)<EOL>if os.path.exists(propfile):<EOL><INDENT>with open(propfile) as f:<EOL><INDENT>props = json.load(f)<EOL><DEDENT>if set(props.keys()) != set(self.properties.keys()):<EOL><INDENT>prop_nomatch = True<EOL><DEDENT>else:<EOL><INDENT>for k,v in props.items():<EOL><INDENT>if np.size(v)==<NUM_LIT:2>:<EOL><INDENT>if not self.properties[k][<NUM_LIT:0>] == v[<NUM_LIT:0>] andself.properties[k][<NUM_LIT:1>] == v[<NUM_LIT:1>]:<EOL><INDENT>props_nomatch = True<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if not self.properties[k] == v:<EOL><INDENT>props_nomatch = True<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if prop_nomatch and not overwrite:<EOL><INDENT>raise ValueError('<STR_LIT>' +<EOL>'<STR_LIT>'.format(basename) +<EOL>'<STR_LIT>')<EOL><DEDENT>if refit or overwrite:<EOL><INDENT>files = glob.glob('<STR_LIT>'.format(basename))<EOL>[os.remove(f) for f in files]<EOL><DEDENT>self._mnest_basename = basename<EOL>pymultinest.run(self.mnest_loglike, self.mnest_prior, self.n_params,<EOL>n_live_points=n_live_points, outputfiles_basename=basename,<EOL>verbose=verbose,<EOL>**kwargs)<EOL>with open(propfile, '<STR_LIT:w>') as f:<EOL><INDENT>json.dump(self.properties, f, indent=<NUM_LIT:2>)<EOL><DEDENT>self._make_samples()<EOL>
Fits model using MultiNest, via pymultinest.  

:param n_live_points:
    Number of live points to use for MultiNest fit.

:param basename:
    Where the MulitNest-generated files will live.  
    By default this will be in a folder named `chains`
    in the current working directory.  Calling this 
    will define a `_mnest_basename` attribute for 
    this object.

:param verbose:
    Whether you want MultiNest to talk to you.

:param refit, overwrite:
    Set either of these to true if you want to 
    delete the MultiNest files associated with the
    given basename and start over.

:param **kwargs:
    Additional keyword arguments will be passed to 
    :func:`pymultinest.run`.