lib/rumale/pipeline/feature_union.rb in rumale-pipeline-0.28.0 vs lib/rumale/pipeline/feature_union.rb in rumale-pipeline-0.28.1

- old
+ new

@@ -41,10 +41,10 @@ # # @param x [Numo::DFloat] (shape: [n_samples, n_features]) The training data to be used for fitting the transformers. # @param y [Numo::NArray/Nil] (shape: [n_samples, n_outputs]) The target values or labels to be used for fitting the transformers. # @return [FeatureUnion] The learned feature union itself. def fit(x, y = nil) - @transformers.each { |_k, t| t.fit(x, y) } + @transformers.each_value { |t| t.fit(x, y) } self end # Fit the model with training data, and then transform them with the learned model. #