code: def copyTargets(self, arr):
          
          array = Numeric.array(arr)
          if not len(array) == self.size:
              raise LayerError('Mismatched target size and layer size in call to copyTargets()', \
                     (len(array), self.size))
          # Removed this because both propagate and backprop (via compute_error) set targets
          #if self.verify and not self.targetSet == 0:
          #    if not self.warningIssued:
          #        print 'Warning! Targets have already been set and no intervening backprop() was called.', \
          #              (self.name, self.targetSet)
          #        print "(Warning will not be issued again)"
          #        self.warningIssued = 1
          if Numeric.add.reduce(array < self.minTarget) or Numeric.add.reduce(array > self.maxTarget):
              print(self.name, self.minTarget, self.maxTarget)
              raise LayerError('Targets for this layer are out of range.', (self.name, array))
          self.target = array
          self.targetSet = 1
docs: Copies the targets of the argument array into the self.target attribute.