Skip to content

Commit

Permalink
hotfix/pd-fix-ruby-methods-argument: Fix argument name in generated m…
Browse files Browse the repository at this point in the history
…ethod name (nok#49)
  • Loading branch information
pdawczak authored and nok committed Apr 4, 2019
1 parent 21b2c59 commit c8e7dbb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
def self.{method_name} (atts)
def self.{method_name} (features)
classes = Array.new({n_classes}, 0)
{branches}

pos = classes.each_with_index.select {{|e, i| e==classes.max}}.map &:last
return pos.min
end
end

0 comments on commit c8e7dbb

Please sign in to comment.