Skip to content
Snippets Groups Projects
Commit 0d38edd5 authored by Amir Mohammadi's avatar Amir Mohammadi Committed by Amir MOHAMMADI
Browse files

Do not preprocess if score is empty

parent 53eae2e7
Branches
No related tags found
No related merge requests found
......@@ -52,6 +52,8 @@ class Algorithm(object):
"""
scores: numpy.ndarray with the shape of (n_samples, n_systems).
returns the transformed scores."""
if scores.size == 0:
return scores
if self.preprocessors is not None:
for preprocessor in self.preprocessors:
scores = preprocessor.transform(scores)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment