def _normalized_errors(self, errors): if not len(errors) or isinstance(errors[0], float): return errors self.logs.warning("Your errors bad formated for plot output. " "They will be normilized.") normilized_errors = [] for error in errors: normilized_errors.append(normilize_error_output(error)) return normilized_errors
def _normalized_errors(self, errors): if not len(errors) or isinstance(errors[0], float): return errors self.logs.warn("Your errors bad formated for plot output. " "They will be normilized.") normilized_errors = [] for error in errors: normilized_errors.append(normilize_error_output(error)) return normilized_errors
def previous_error(self): errors = self.errors_in return normilize_error_output(errors[-2]) if len(errors) > 2 else None
def _last_error(self, errors): if errors and errors[-1] is not None: return normilize_error_output(errors[-1])