Skip to content

Commit

Permalink
refactor: autocorrect Performance/StringIdentifierArgument cop
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshoku committed Dec 16, 2023
1 parent 539e0cd commit 9eef8b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rumale-linear_model/lib/rumale/linear_model/sgd_classifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def fit(x, y)

@classes = Numo::Int32[*y.to_a.uniq.sort]

send("fit_#{@loss_func.name}", x, y)
send(:"fit_#{@loss_func.name}", x, y)

self
end
Expand Down Expand Up @@ -157,7 +157,7 @@ def decision_function(x)
def predict(x)
x = ::Rumale::Validation.check_convert_sample_array(x)

send("predict_#{@loss_func.name}", x)
send(:"predict_#{@loss_func.name}", x)
end

# Predict probability for samples.
Expand All @@ -167,7 +167,7 @@ def predict(x)
def predict_proba(x)
x = ::Rumale::Validation.check_convert_sample_array(x)

send("predict_proba_#{@loss_func.name}", x)
send(:"predict_proba_#{@loss_func.name}", x)
end

private
Expand Down

0 comments on commit 9eef8b7

Please sign in to comment.