code: def loadDataFromFile(self, filename, ocnt = -1):
          
          if ocnt == -1:
              ocnt = int(self.layers[len(self.layers) - 1].size)
          fp = open(filename, 'r')
          line = fp.readline()
          self.targets = []
          self.inputs = []
          while line:
              data = list(map(float, line.split()))
              cnt = len(data)
              icnt = cnt - ocnt
              self.inputs.append(self.patternVector(data[0:icnt]))
              self.targets.append(self.patternVector(data[icnt:]))
              line = fp.readline()
          self.loadOrder = [0] * len(self.inputs)
          for i in range(len(self.inputs)):
              self.loadOrder[i] = i
docs: Deprecated.