Пример #1
0
 def get_libsvm_data(self):
     reader = DataReader()
     self.x_train, self.y_train = reader.temp_read_train_data(
         '../UCR_TS_Archive_2015/wafer/wafer_TRAIN2')
     self.x_test, self.y_test = reader.temp_read_test_data(
         '../UCR_TS_Archive_2015/wafer/wafer_TEST2')
     self.y_train = self.y_train - 1
     self.y_test = self.y_test - 1
Пример #2
0
 def get_libsvm_data(self):
     reader = DataReader()
     self.x_train, self.y_train = reader.temp_read_train_data('../UCR_TS_Archive_2015/ECG5000/ECG5000_TEST')
     self.x_test, self.y_test = reader.temp_read_test_data('../UCR_TS_Archive_2015/ECG5000/ECG5000_TRAIN')
Пример #3
0
 def get_libsvm_data(self):
     reader = DataReader()
     self.x_train, self.y_train = reader.temp_read_train_data(
         '../UCR_TS_Archive_2015/StarLightCurves/StarLightCurves_TRAIN')
     self.x_test, self.y_test = reader.temp_read_test_data(
         '../UCR_TS_Archive_2015/StarLightCurves/StarLightCurves_TEST')