Beispiel #1
0
 def requires(self):
     for de in self.data_eval:
         if "A+" in self.samples or "B+" in self.samples or "C+" in self.samples:
             test_samples = []
             for s in self.samples:
                 if "+" in s:
                     test_samples.append(s)
             test_samples = tuple(test_samples)
             yield SplitModi(
                 self.iteration,
                 self.path,
                 de,
                 "groundtruth",
                 test_samples,
                 self.data_eval,
             )
         if "A" in self.samples or "B" in self.samples or "C" in self.samples:
             training_samples = []
             for s in self.samples:
                 if not ("+" in s):
                     training_samples.append(s)
             training_samples = tuple(training_samples)
             yield PartnerReport(
                 self.iteration,
                 self.path,
                 de,
                 "groundtruth",
                 training_samples,
                 self.data_eval,
             )
             yield PartnerReport(
                 self.iteration,
                 self.path,
                 de,
                 "validation",
                 training_samples,
                 self.data_eval,
             )
             yield PartnerReport(
                 self.iteration,
                 self.path,
                 de,
                 "training",
                 training_samples,
                 self.data_eval,
             )
Beispiel #2
0
 def requires(self):
     for de in self.data_eval:
         if 'A+' in self.samples or 'B+' in self.samples or 'C+' in self.samples:
             test_samples = []
             for s in self.samples:
                 if ('+' in s):
                     test_samples.append(s)
             test_samples = tuple(test_samples)
             yield SplitModi(self.iteration, self.path, de, 'groundtruth',
                             test_samples, self.data_eval)
         if 'A' in self.samples or 'B' in self.samples or 'C' in self.samples:
             training_samples = []
             for s in self.samples:
                 if not ('+' in s):
                     training_samples.append(s)
             training_samples = tuple(training_samples)
             yield PartnerReport(self.iteration, self.path, de,
                                 'groundtruth', training_samples,
                                 self.data_eval)
             yield PartnerReport(self.iteration, self.path, de,
                                 'validation', training_samples,
                                 self.data_eval)
             yield PartnerReport(self.iteration, self.path, de, 'training',
                                 training_samples, self.data_eval)
 def requires(self):
     return SplitModi(self.it, self.path, self.de, self.m, self.samples, self.data_eval)