Example #1
0
 def _build_raw_matrix_path(self):
     if not self.pat_batch_ind:
         template = '%s-normality-matrix-%d-episodes-raw.tab'
     else:
         template = '%s-normality-matrix-%d-episodes-raw-'+str(self.pat_batch_ind)+'.tab'
     pipeline_file_name = inspect.getfile(inspect.currentframe())
     return SupervisedLearningPipeline._build_matrix_path(self, template, \
         pipeline_file_name)
Example #2
0
 def _build_processed_matrix_path(self):
     processed_matrix_filename = '%s-normality-matrix-processed.tab' % self._var  #
     processed_matrix_path = os.path.join('data', self._var, processed_matrix_filename)  # TODO
     return processed_matrix_path
     if not self._holdOut:
         template = '%s-normality-matrix-processed.tab'
     else:
         template = '%s-normality-matrix-%d-episodes-processed-holdout.tab'
     pipeline_file_path = inspect.getfile(inspect.currentframe())
     return SupervisedLearningPipeline._build_matrix_path(self, template, \
         pipeline_file_path)
Example #3
0
 def _build_raw_matrix_path(self):
     raw_matrix_filename = '%s-normality-matrix-raw.tab' % self._var  #
     raw_matrix_filepath = os.path.join('data', self._var, raw_matrix_filename)  # TODO
     if not os.path.exists('data'):
         os.mkdir('data')
     if not os.path.exists(os.path.join('data', self._var)):
         os.mkdir(os.path.join('data', self._var))
     return raw_matrix_filepath
     if not self._holdOut:
         template = '%s-normality-matrix-raw.tab'
     else:
         template = '%s-normality-matrix-%d-episodes-raw-holdout.tab'
     pipeline_file_name = inspect.getfile(inspect.currentframe())
     return SupervisedLearningPipeline._build_matrix_path(self, template, \
         pipeline_file_name)
 def _build_processed_matrix_path(self, raw_matrix_path):
     template = '%s-change-matrix-%d-episodes-processed.tab'
     pipeline_file_path = inspect.getfile(inspect.currentframe())
     return SupervisedLearningPipeline._build_matrix_path(self, template, \
         pipeline_file_path)
Example #5
0
 def _build_composite_raw_matrix_path(self):
     template = '%s-normality-matrix-%d-episodes-raw.tab'
     pipeline_file_name = inspect.getfile(inspect.currentframe())
     return SupervisedLearningPipeline._build_matrix_path(self, template, \
         pipeline_file_name)