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

Added result saving for cqboost

parent f7290f57
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,16 @@ class CQBoost(ColumnGenerationClassifier, BaseMonoviewClassifier): ...@@ -24,6 +24,16 @@ class CQBoost(ColumnGenerationClassifier, BaseMonoviewClassifier):
def getInterpret(self, directory, y_test): def getInterpret(self, directory, y_test):
np.savetxt(directory + "train_metrics.csv", self.train_metrics, delimiter=',') np.savetxt(directory + "train_metrics.csv", self.train_metrics, delimiter=',')
np.savetxt(directory + "y_test_step.csv", self.step_decisions,
delimiter=',')
step_metrics = []
for step_index in range(self.step_decisions.shape[1] - 1):
step_metrics.append(self.plotted_metric.score(y_test,
self.step_decisions[:,
step_index]))
step_metrics = np.array(step_metrics)
np.savetxt(directory + "step_test_metrics.csv", step_metrics,
delimiter=',')
return getInterpretBase(self, directory, "CQBoost", self.weights_, y_test) return getInterpretBase(self, directory, "CQBoost", self.weights_, y_test)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment