lib/lightgbm/utils.rb in lightgbm-0.3.3 vs lib/lightgbm/utils.rb in lightgbm-0.3.4
- old
+ new
@@ -10,10 +10,10 @@
def params_str(params)
params.map { |k, v| [check_param(k.to_s), check_param(Array(v).join(",").to_s)].join("=") }.join(" ")
end
def check_param(v)
- raise ArgumentError, "Invalid parameter" if /[[:space:]]/.match(v)
+ raise ArgumentError, "Invalid parameter" if /[[:space:]]/.match?(v)
v
end
# change default verbosity
def set_verbosity(params)