예제 #1
0
 def find_max_min(self):
     """
     If the X_domain is not defined by the user, we find the largest
     and smallest value taken in each feature.
     :return:
     """
     max_val = find_max(self.training_instances)
     min_val = find_min(self.training_instances)
     self.domain = (min_val, max_val)
예제 #2
0
 def set_boundaries(self, train_instances):
     """
     Setting the x_min and x_max by estimating the smallest and largest
     value from the training data.
     :param train_instances:
     :return: None
     """
     self.x_min = find_min(train_instances)
     self.x_max = find_max(train_instances)
예제 #3
0
    def set_boundaries(self, train_instances):
        """
        Setting the x_min and x_max by estimating the smallest and largest
        value from the training data.
        :param train_instances:
        :return: None
        """

        # warning: find_min and find_max currently not working as intended
        self.x_min = find_min(train_instances)
        self.x_max = find_max(train_instances)