Skip to content

Commit 120ff21

Browse files
committed
chore: disable Lint/FormatParameterMismatch cop
1 parent fef7b64 commit 120ff21

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/rumale/torch/neural_net_regressor.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,14 @@ def train(data_loader)
179179
end
180180

181181
def display_epoch(train_loader, test_loader, epoch)
182+
# rubocop:disable Lint/FormatParameterMismatch
182183
if test_loader.nil?
183184
puts(format("epoch: %#{max_epoch.to_s.length}d/#{max_epoch} - loss: %.4f", epoch, evaluate(train_loader)))
184185
else
185186
puts(format("epoch: %#{max_epoch.to_s.length}d/#{max_epoch} - loss: %.4f - val_loss: %.4f",
186187
epoch, evaluate(train_loader), evaluate(test_loader)))
187188
end
189+
# rubocop:enable Lint/FormatParameterMismatch
188190
end
189191

190192
def evaluate(data_loader)

0 commit comments

Comments
 (0)