예제 #1
0
 def __init__(self, data, protectedIndex, protectedValue, gamma=svm.DEFAULT_GAMMA):
    self.splitData(data)
    outputs = svm.svmDetailedSKL(self.trainingData, gamma, verbose=True, kernel='linear')
    self.svmDetails = outputs
    self.bulkMargin = outputs[-2]
    self.margin = outputs[-1]
    super().__init__(defaultThreshold=0, protectedIndex=protectedIndex,
                     protectedValue=protectedValue, bulkMargin=self.bulkMargin)
예제 #2
0
 def __init__(self, data, protectedIndex, protectedValue, gamma=svm.DEFAULT_GAMMA):
    self.splitData(data)
    outputs = svm.svmDetailedSKL(self.trainingData, gamma, verbose=True, kernel='linear')
    self.svmDetails = outputs
    self.bulkMargin = outputs[-2]
    self.margin = outputs[-1]
    super().__init__(defaultThreshold=0, protectedIndex=protectedIndex,
                   protectedValue=protectedValue, bulkMargin=self.bulkMargin)