def test_gains(self):
     for dataset in config['datasets']:
         for uri in dataset['uris']:
             data = Data(uri)
             types = al.types(data)
             result = al.groupmeans(data, types['groups'], types['numbers'])
             self.check_gain(result, dataset['groupmeans']['gain'], uri)
         print('for %s on %s' %
               (dataset['table'], getengine(dataset['uris'])))
Exemple #2
0
 def test_gains_changed_types(self):
     # Issue #24
     for dataset in config['datasets']:
         if 'changedtypes' not in dataset:
             continue
         for uri in dataset['uris']:
             data = Data(uri)
             types = dataset['changedtypes']
             result = al.groupmeans(data, types['groups'], types['numbers'])
             self.check_gain(result, types['groupmeans']['gain'], uri)
         print('for %s on %s' % (dataset['table'], getengine(dataset['uris'])))
 def test_gains_changed_types(self):
     # Issue #24
     for dataset in config['datasets']:
         if 'changedtypes' not in dataset:
             continue
         for uri in dataset['uris']:
             data = Data(uri)
             types = dataset['changedtypes']
             result = al.groupmeans(data, types['groups'], types['numbers'])
             self.check_gain(result, types['groupmeans']['gain'], uri)
         print('for %s on %s' %
               (dataset['table'], getengine(dataset['uris'])))
Exemple #4
-1
 def test_gains(self):
     for dataset in config['datasets']:
         for uri in dataset['uris']:
             data = Data(uri)
             types = al.types(data)
             result = al.groupmeans(data, types['groups'], types['numbers'])
             self.check_gain(result, dataset['groupmeans']['gain'], uri)
         print('for %s on %s' % (dataset['table'], getengine(dataset['uris'])))