Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ GEM
hashdiff (1.2.1)
i18n (1.14.8)
concurrent-ruby (~> 1.0)
json (2.21.2)
json (3.0.2)
language_server-protocol (3.17.0.6)
lint_roller (1.1.0)
listen (3.9.0)
Expand Down Expand Up @@ -89,8 +89,8 @@ GEM
tsort
regexp_parser (2.12.0)
rexml (3.4.4)
rubocop (1.89.0)
json (~> 2.3)
rubocop (1.91.0)
json (>= 2.3)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
parallel (>= 1.10)
Expand Down
3 changes: 1 addition & 2 deletions ext/classifier/extconf.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'mkmf'

# rubocop:disable Style/GlobalVars
# rubocop:disable-next Style/GlobalVars
if ENV['COVERAGE']
# Coverage flags: disable optimization for accurate line coverage
$CFLAGS << ' -O0 -g --coverage -Wall'
Expand All @@ -9,7 +9,6 @@
# Optimization flags for performance
$CFLAGS << ' -O3 -ffast-math -Wall'
end
# rubocop:enable Style/GlobalVars

# Create the Makefile
create_makefile('classifier/classifier_ext')
3 changes: 1 addition & 2 deletions lib/classifier/logistic_regression.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class LogisticRegression # rubocop:disable Metrics/ClassLength
#
# @rbs (*String | Symbol | Array[String | Symbol], ?learning_rate: Float, ?regularization: Float,
# ?max_iterations: Integer, ?tolerance: Float, ?min_word_length: Integer) -> void
# rubocop:disable Metrics/ParameterLists
# rubocop:disable-next Metrics/ParameterLists
def initialize(*categories, learning_rate: DEFAULT_LEARNING_RATE,
regularization: DEFAULT_REGULARIZATION,
max_iterations: DEFAULT_MAX_ITERATIONS,
Expand All @@ -80,7 +80,6 @@ def initialize(*categories, learning_rate: DEFAULT_LEARNING_RATE,
@storage = nil
@min_word_length = min_word_length
end
# rubocop:enable Metrics/ParameterLists

# Trains the classifier with text for a category.
#
Expand Down
Loading