MNT Inelegant failure of RandomTreesEmbedding.transform when not fitted
@@ -2023,4 +2023,5 @@ class RandomTreesEmbedding(BaseForest):
X_transformed : sparse matrix, shape=(n_samples, n_out)
Transformed dataset.
"""
+ check_is_fitted(self, 'one_hot_encoder_')
return self.one_hot_encoder_.transform(self.apply(X))
