Skip to content

Commit

Permalink
Optionally return validation run
Browse files Browse the repository at this point in the history
  • Loading branch information
mariya committed Nov 24, 2024
1 parent 87b2933 commit 25b6b79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/conformist/base_cop.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ def predict(self,
self.output_dir,
upset_plot_color)

vr = None
if validate:
vr = ValidationRun(
self.val_idx,
Expand All @@ -170,7 +171,7 @@ def predict(self,
df = pd.DataFrame(stats, index=[0])
df.T.to_csv(f'{self.output_dir}/summary.csv', header=False)

return formatted_predictions
return formatted_predictions, vr

def prediction_set_to_text(self, prediction_set, display_classes=None):
class_names = self.class_names
Expand Down

0 comments on commit 25b6b79

Please sign in to comment.