code: def backprop(self, **args):
          
          retval = self.compute_error(**args)
          if self.learning:
              self.compute_wed()
          return retval
docs: Computes error and wed for back propagation of error.