Beispiel #1
0
    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
Beispiel #2
0
    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
Beispiel #3
0
 def previous_error(self):
     errors = self.errors_in
     return normilize_error_output(errors[-2]) if len(errors) > 2 else None
Beispiel #4
0
 def _last_error(self, errors):
     if errors and errors[-1] is not None:
         return normilize_error_output(errors[-1])
Beispiel #5
0
 def previous_error(self):
     errors = self.errors_in
     return normilize_error_output(errors[-2]) if len(errors) > 2 else None
Beispiel #6
0
 def _last_error(self, errors):
     if errors and errors[-1] is not None:
         return normilize_error_output(errors[-1])