code: def saveDataToFile(self, filename):
          
          fp = open(filename, 'w')
          for i in range(len(self.inputs)):
              try:
                  vec = self.replacePatterns(self.inputs[i])
                  for item in vec:
                      fp.write("%f " % item)
              except:
                  pass
              try:
                  vec = self.replacePatterns(self.targets[i])
                  for item in vec:
                      fp.write("%f " % item)
              except:
                  pass
              fp.write("\n")
docs: Deprecated.