Skip to content

Commit

Permalink
refactor: autocorrect Style/HashEachMethods cop
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshoku committed Dec 10, 2023
1 parent 3bd4061 commit 21fcc8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rumale-pipeline/lib/rumale/pipeline/feature_union.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def initialize(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

Expand Down

0 comments on commit 21fcc8c

Please sign in to comment.