code: def getDataCrossValidation(self, pos):
          
          set = {}
          if type(self.inputs[pos]) == dict:
              set.update(self.inputs[pos])
          else:
              set["input"] = self.inputs[pos]
          if self.targets:
              if type(self.targets[pos]) == dict:
                  set.update(self.targets[pos])
              else:
                  set["output"] = self.targets[pos]
          return set
docs: Returns the inputs/targets for a pattern pos, or assumes that
          the layers are called input and output and uses the lists
          in self.inputs and self.targets.