def setUp(self):
    random.seed(seed)
    create_app_dirs()
    setup_logger()
    logging.debug('Seed is %s', seed)
    prepare_fdb()
    (self.subject_names, self.subject_classes) = create_sample()
    logging.info('Subject names: %s', self.subject_names)
    logging.info('Subject classes are: %s', self.subject_classes)
    recreate_db()
    populate_db(self.subject_classes)
    logging.info('New db created')
    clear_dataset()
    copy_dataset(subject_names=self.subject_names)
    logging.info('Training Dataset created')
    clear_recognizers()
    for class_id in get_all_classes():
        train(class_id=class_id)
    logging.info('Classifiers trained')
def setUp(self):
    random.seed(seed)
    create_app_dirs()
    setup_logger()
    logging.debug('Seed is %s', seed)
    prepare_fdb()
    (self.subject_names, self.subject_classes) = create_sample()
    logging.info('Subject names: %s', self.subject_names)
    logging.info('Subject classes are: %s', self.subject_classes)
    recreate_db()
    populate_db(self.subject_classes)
    logging.info('New db created')
    clear_dataset()
    copy_dataset(subject_names=self.subject_names)
    logging.info('Training Dataset created')
    clear_recognizers()
    for class_id in get_all_classes():
        train(class_id=class_id)
    logging.info('Classifiers trained')