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

Added fakeestimator

parent ceb55dac
Branches
Tags
No related merge requests found
Pipeline #3924 passed
...@@ -25,6 +25,11 @@ class MultiviewResult(object): ...@@ -25,6 +25,11 @@ class MultiviewResult(object):
except: except:
return self.classifier_name return self.classifier_name
class FakeEstimator():
def predict(self, X, example_indices=None, view_indices=None):
return np.zeros(example_indices.shape[0])
def get_names(classed_list): def get_names(classed_list):
return np.array([object_.__class__.__name__ for object_ in classed_list]) return np.array([object_.__class__.__name__ for object_ in classed_list])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment