From 9eef8b7c505d7ae728aad1b8bc856b13704e669b Mon Sep 17 00:00:00 2001 From: yoshoku Date: Sat, 16 Dec 2023 16:38:14 +0900 Subject: [PATCH] refactor: autocorrect Performance/StringIdentifierArgument cop --- .../lib/rumale/linear_model/sgd_classifier.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rumale-linear_model/lib/rumale/linear_model/sgd_classifier.rb b/rumale-linear_model/lib/rumale/linear_model/sgd_classifier.rb index 76ec566a..062daba5 100644 --- a/rumale-linear_model/lib/rumale/linear_model/sgd_classifier.rb +++ b/rumale-linear_model/lib/rumale/linear_model/sgd_classifier.rb @@ -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 @@ -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. @@ -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