def main():
    args = evaluator_parser()
    if args.verbose:
        logging.basicConfig(level=logging.INFO)

    configuration = Configuration.fromfilename('FE', args.config_file)
    logging.info(configuration)
    configuration.save_to_file()

    features_extraction_protocol = FeaturesExtractionProtocol(configuration)
    features_extraction_protocol.run()
def main():
    args = evaluator_parser()
    if args.verbose:
        logging.basicConfig(level=logging.INFO)

    configuration = Configuration.fromfilename('ACE', args.config_file)
    logging.info(configuration)
    configuration.save_to_file()

    algorithmic_constrained_evaluation_protocol = AlgorithmicConstrainedEvaluationProtocol(
        configuration)
    algorithmic_constrained_evaluation_protocol.run()
Beispiel #3
0
 def test_init_fromfilename_correct_params(self):
     Configuration.fromfilename('ACE', self.configuration_file)
Beispiel #4
0
 def test_print_to_file(self):
     filename_result = 'result/configuration.txt'
     configuration = Configuration.fromfilename('ACE',
                                                self.configuration_file)
     configuration.save_to_file(filename_result)
     self.assertTrue(os.path.isfile(filename_result))
Beispiel #5
0
 def test_init_fromfilename_wrong_type_evaluation(self):
     self.assertRaises(
         ValueError, lambda: Configuration.fromfilename(
             'WRONG', self.configuration_file))
Beispiel #6
0
 def test_init_fromfilename_wrong_path(self):
     self.assertRaises(IOError,
                       lambda: Configuration.fromfilename('ACE', 'WRONG'))
Beispiel #7
0
 def get_configuration(cls, type_evaluation):
     return Configuration.fromfilename(type_evaluation,
                                       cls.configuration_file)