def test_segmentation_wisdm_v2(self):
     Configurator(self.p).set('settings', 'log_dir', 'logs')
     bhar = B_HAR(self.p)
     print('%s -> %s' % ('wisdm_v2', str(datetime.fromtimestamp(datetime.timestamp(datetime.now()))).split('.')[0]))
     Configurator(self.p).set('dataset', 'path', '%s%s' % (self.ds_path, 'wisdm_v2'))
     Configurator(self.p).set('settings', 'data_treatment', 'segmentation')
     Configurator(self.p).set('dataset', 'header_type', 'tdcp')
     Configurator(self.p).set('settings', 'time', '10')
     Configurator(self.p).set('settings', 'sampling_frequency', '20')
     Configurator(self.p).set('settings', 'overlap', '0')
     Configurator(self.p).set('cleaning', 'filter', 'no')
     bhar.get_baseline(['K-NN', 'LDA', 'QDA', 'RF', 'DT'], ['m1_acc'])
     self.assertEqual(True, True)
Esempio n. 2
0
 def test_features_mhealth(self):
     Configurator(self.p).set('settings', 'log_dir', 'logs')
     bhar = B_HAR(self.p)
     print('%s -> %s' %
           ('mhealth',
            str(datetime.fromtimestamp(datetime.timestamp(
                datetime.now()))).split('.')[0]))
     Configurator(self.p).set('dataset', 'path',
                              '%s%s' % (self.ds_path, 'mhealth'))
     Configurator(self.p).set('settings', 'data_treatment',
                              'features_extraction')
     Configurator(self.p).set('dataset', 'header_type', 'dcp')
     Configurator(self.p).set('settings', 'time', '5')
     Configurator(self.p).set('settings', 'sampling_frequency', '50')
     Configurator(self.p).set('settings', 'overlap', '2.5')
     Configurator(self.p).set('cleaning', 'low_cut', '20')
     bhar.get_baseline(['K-NN', 'LDA', 'QDA', 'RF', 'DT'], ['m1_acc'])
     self.assertEqual(True, True)