Skip to content

Commit

Permalink
gbm data - Shadowing outer local variable fix
Browse files Browse the repository at this point in the history
  • Loading branch information
asaf schers committed Apr 12, 2018
1 parent 6942d07 commit bdaa7c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/scoruby/models/gradient_boosted_model/data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def fetch_continuous_features
def fetch_categorical_features
categorical_features_xml.each_with_object(Hash.new([])) do |xml, res|
res[xml.attr('name').to_sym] = xml.xpath('Value')
.map { |xml| xml.attr('value') }
.map { |v| v.attr('value') }
end
end

Expand Down

0 comments on commit bdaa7c3

Please sign in to comment.