Skip to content
Snippets Groups Projects
Commit 40c2f34e authored by Baptiste Bauvin's avatar Baptiste Bauvin
Browse files

CanProbas

parent 3b3e2d9c
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ class CBBoost(CBBoostClassifier, BaseMonoviewClassifier):
def canProbas(self):
"""Used to know if the classifier can return label probabilities"""
return True
return False
def getInterpret(self, directory, y_test):
return self.getInterpretCBBoost(directory, y_test)
......
......@@ -32,7 +32,7 @@ class CGDesc(ColumnGenerationClassifierQar, BaseMonoviewClassifier):
def canProbas(self):
"""Used to know if the classifier can return label probabilities"""
return True
return False
def getInterpret(self, directory, y_test):
return self.getInterpretQar(directory, y_test)
......
......@@ -37,7 +37,7 @@ class CQBoost(ColumnGenerationClassifier, BaseMonoviewClassifier):
def canProbas(self):
"""Used to know if the classifier can return label probabilities"""
return True
return False
def getInterpret(self, directory, y_test):
np.savetxt(directory + "train_metrics.csv", self.train_metrics,
......
......@@ -61,7 +61,7 @@ class DecisionTreePregen(DecisionTreeClassifier, BaseMonoviewClassifier,
def canProbas(self):
"""Used to know if the classifier can return label probabilities"""
return True
return False
def getInterpret(self, directory, y_test):
interpretString = ""
......
......@@ -71,7 +71,7 @@ class GradientBoosting(GradientBoostingClassifier, BaseMonoviewClassifier):
def canProbas(self):
"""Used to know if the classifier can return label probabilities"""
return True
return False
def getInterpret(self, directory, y_test):
interpretString = ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment