def setUp(self):
     self._dataset = DummyCleanDataset()
     self._sensitivity_measure = DummySensitivity()
     self._usability_cost_measure = DummyUsabilityCostMeasure()
     self._sensitivity_threshold = SENSITIVITY_THRESHOLD
     self._trace_path = TRACE_FILENAME
     self._expected_trace_path = EXPECTED_TRACE_PATH
     self._exploration = ConditionalEntropy(
         self._sensitivity_measure, self._usability_cost_measure,
         self._dataset, self._sensitivity_threshold)
     params.set('Multiprocessing', 'explorations', 'false')
    def setUp(self):
        # If we use the modin engine, we ignore the multiprocessing test as it
        # is incompatible with modin
        if params.get('DataAnalysis', 'engine') == 'modin.pandas':
            self.skipTest()

        self._dataset = DummyCleanDataset()
        self._sensitivity_measure = DummySensitivity()
        self._usability_cost_measure = DummyUsabilityCostMeasure()
        self._sensitivity_threshold = SENSITIVITY_THRESHOLD
        self._trace_path = TRACE_FILENAME
        self._expected_trace_path = EXPECTED_TRACE_PATH
        self._exploration = ConditionalEntropy(
            self._sensitivity_measure, self._usability_cost_measure,
            self._dataset, self._sensitivity_threshold)
        params.set('Multiprocessing', 'explorations', 'true')
Esempio n. 3
0
 def setUp(self):
     self._dataset = DummyCleanDataset()
     self._sensitivity_measure = DummySensitivity()
     self._usability_cost_measure = DummyUsabilityCostMeasure()
     self._sensitivity_threshold = SENSITIVITY_THRESHOLD
     self._trace_path = TRACE_FILENAME
     self._expected_trace_path = EXPECTED_TRACE_PATH_SINGLEPATH_PRUNING_ON
     self._explored_paths = 1
     self._pruning = PRUNING_ON
     self._exploration = FPSelect(self._sensitivity_measure,
                                  self._usability_cost_measure,
                                  self._dataset,
                                  self._sensitivity_threshold,
                                  explored_paths=self._explored_paths,
                                  pruning=self._pruning)
     params.set('Multiprocessing', 'explorations', 'false')
Esempio n. 4
0
    def setUp(self):
        # If we use the modin engine, we ignore the multiprocessing test as it
        # is incompatible with modin
        if params.get('DataAnalysis', 'engine') == 'modin.pandas':
            self.skipTest()

        self._dataset = DummyCleanDataset()
        self._sensitivity_measure = DummySensitivity()
        self._usability_cost_measure = DummyUsabilityCostMeasure()
        self._sensitivity_threshold = SENSITIVITY_THRESHOLD
        self._trace_path = TRACE_FILENAME
        self._expected_trace_path = EXPECTED_TRACE_PATH_MULTIPATH_PRUNING_OFF
        self._pruning = PRUNING_OFF
        self._explored_paths = MULTI_EXPLR_PATHS
        self._exploration = FPSelect(self._sensitivity_measure,
                                     self._usability_cost_measure,
                                     self._dataset,
                                     self._sensitivity_threshold,
                                     explored_paths=self._explored_paths,
                                     pruning=self._pruning)
        params.set('Multiprocessing', 'explorations', 'true')