def get_termination_stats(self, get_cos=True):
delta_vals = self._last_vals - self.param_vals<EOL>delta_err = self._last_error - self.error<EOL>frac_err = delta_err / self.error<EOL>to_return = {'<STR_LIT>':delta_vals, '<STR_LIT>':delta_err,<EOL>'<STR_LIT>':<NUM_LIT:1>*self._num_iter, '<STR_LIT>':frac_err,<EOL>'<STR_LIT:error>':self.error, '<STR_LIT>':self._exp_err}<EOL>if get_cos:<EOL><INDENT>model_cosine = self.calc_model_cosine()<EOL>to_return.update({'<STR_LIT>':model_cosine})<EOL><DEDENT>return to_return<EOL>
Returns a dict of termination statistics

Parameters
----------
    get_cos : Bool, optional
        Whether or not to calcualte the cosine of the residuals
        with the tangent plane of the model using the current J.
        The calculation may take some time. Default is True

Returns
-------
    dict
        Has keys
            delta_vals  : The last change in parameter values.
            delta_err   : The last change in the error.
            exp_err     : The expected (last) change in the error.
            frac_err    : The fractional change in the error.
            num_iter    : The number of iterations completed.
            error       : The current error.