Skip to content
Snippets Groups Projects
Commit 8c803656 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

For some reason, the class information is not passed in the sample wrapper

parent 48762721
No related branches found
No related tags found
No related merge requests found
......@@ -163,7 +163,7 @@ class SampleWrapper(BaseWrapper, TransformerMixin):
X = SampleBatch(samples)
self.estimator = self.estimator.fit(X, **kwargs)
self.estimator = self.estimator.fit(X, y=y, **kwargs)
copy_learned_attributes(self.estimator, self)
return self
......
......@@ -40,7 +40,7 @@ transformer.
... print(f"Transforming {len(X)} samples ...")
... return np.array(X) + np.array(sample_specific_offsets)
...
... def fit(self, X):
... def fit(self, X, y=None):
... print("Fit was called!")
... return self
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment