def set(self, **kargs):
kwords = set([<EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>',<EOL>])<EOL>kargs = dict(kargs)<EOL>oldkargs = {}<EOL>fargs = {}<EOL>for k in list(kargs.keys()):  <EOL><INDENT>if k in kwords:<EOL><INDENT>oldkargs[k] = getattr(self, k)<EOL>setattr(self, k, kargs[k])<EOL>kwords.remove(k)<EOL><DEDENT>else:<EOL><INDENT>fargs[k] = kargs[k]<EOL>del kargs[k]<EOL><DEDENT><DEDENT>for k in kwords:<EOL><INDENT>kargs[k] = getattr(self, k)<EOL><DEDENT>if '<STR_LIT>' in kwords:<EOL><INDENT>oldkargs['<STR_LIT>'] = self.fitterargs<EOL>self.fitterargs = dict(self.fitterargs)<EOL><DEDENT>if len(fargs) > <NUM_LIT:0>:<EOL><INDENT>self.fitterargs.update(fargs)<EOL><DEDENT>kargs['<STR_LIT>'] = dict(self.fitterargs)<EOL>return kargs, oldkargs<EOL>
Reset default keyword parameters.

        Assigns new default values from dictionary ``kargs`` to the fitter's
        keyword parameters. Keywords for the underlying :mod:`lsqfit` fitters
        can also be  included (or grouped together in dictionary
        ``fitterargs``).

        Returns tuple ``(kargs, oldkargs)`` where ``kargs`` is a dictionary
        containing all :class:`lsqfit.MultiFitter` keywords after they have
        been updated, and ``oldkargs`` contains the  original values for these
        keywords. Use ``fitter.set(**oldkargs)`` to restore the original
        values.