code: def display(self):
          
          size = list(range(len(self.layers)))
          size.reverse()
          for i in size:
              layer = self.layers[i]
              if layer.active:
                  print('%s layer (size %d)' % (layer.name, layer.size))
                  tlabel, olabel = '', ''
                  if (layer.type == 'Output'):
                      if self.countWrong:
                          tlabel = ' (%s)' % self.classify(layer.target.tolist())
                          olabel = ' (%s)' % self.classify(layer.activation.tolist())
                          if olabel == tlabel:
                              self.numRight += 1
                          else:
                              olabel += '  *** WRONG ***'
                              self.numWrong += 1
                              if self.actDisplay is not None:
                                  self.actDisplay.showWrong()
                      print('Target    : %s%s' % (pretty(layer.target, max=15), tlabel))
                  print('Activation: %s%s' % (pretty(layer.activation, max=15), olabel))
                  if self.patterned and layer.type != 'Hidden':
                      targetWord, diff = self.getWord( layer.target, returnDiff = 1)
                      if layer.kind == 'Output':
                          if targetWord == None:
                              print("Target Pattern   = %s" % "No match")
                          else:
                              if diff == 0.0:
                                  print("Target Pattern   = '%s'" % targetWord)
                              else:
                                  print("Target Pattern   = '%s'; difference = %f)" % (targetWord, diff))
                      actWord, diff = self.getWord( layer.activation, returnDiff = 1 )
                      if (layer.kind == 'Input' or layer.kind == 'Output'):
                          if actWord == None:
                              print("Matching Pattern = %s" % "No match")
                          else:
                              if diff == 0.0:
                                  print("Matching Pattern = '%s'" % actWord)
                              else:
                                  print("Matching Pattern = '%s'; difference = %f" % (actWord, diff))
                  print("------------------------------------")
docs: Displays the network to the screen.