lightgbm 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b639f427dbaad67da49c7bdb3b1f2a07063b7b41869f23a74addbf89b80f207f
4
- data.tar.gz: 1a7d853c04cb4b1ba0f7466432241a4e37e162ae7faee0b5dcfee960eb4ebd39
3
+ metadata.gz: 260da517ea054bb9de47d8e1f1ee6ece133bfae733da24ab943e9387a2a99f10
4
+ data.tar.gz: a9a9a94153f21a6d085ca5ce10a973b71dc81f1710d4b2afbab5c4caf3302d65
5
5
  SHA512:
6
- metadata.gz: 190739a1d493f21820479e4320c1f1e375cfd7355e0436bda243cf5a1673f2eaf8143c906333b2ae11848ba0f698c6ee93f8f922df7819e0251b84deedd0958c
7
- data.tar.gz: 3748f8d473d99ba194564f7ca18a94ad58e6f33cada8ebb106cea52cff76ff483c6dc4dafca38519f77c6fe5285356238149a181351c89eaf46ad9a0ef591275
6
+ metadata.gz: a95afda36a019f80afdaeb3a55c2bfa4e8a93988f155e546f0f2b98be33ba58a295fb31cc1643c9cd95576d5fabc37a5ed28fb6a0d1b13cf3be56dab4d9d0ba0
7
+ data.tar.gz: 77021a65a856a645c2715460a0285937483b46a889d18c07ce8cf097a8c9176595767c3b32d33a03e8ee6f5c785f20e8817e5ddb3e98629297e5973a8673c0a7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.3.4 (2024-07-28)
2
+
3
+ - Updated LightGBM to 4.5.0
4
+
1
5
  ## 0.3.3 (2024-06-15)
2
6
 
3
7
  - Updated LightGBM to 4.4.0
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [LightGBM](https://github.com/microsoft/LightGBM) - high performance gradient boosting - for Ruby
4
4
 
5
- [![Build Status](https://github.com/ankane/lightgbm-ruby/workflows/build/badge.svg?branch=master)](https://github.com/ankane/lightgbm-ruby/actions)
5
+ [![Build Status](https://github.com/ankane/lightgbm-ruby/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/lightgbm-ruby/actions)
6
6
 
7
7
  ## Installation
8
8
 
@@ -51,7 +51,7 @@ module LightGBM
51
51
  alias_method :to_json, :dump_model
52
52
 
53
53
  def eval_valid
54
- @name_valid_sets.each_with_index.map { |n, i| inner_eval(n, i + 1) }.flatten(1)
54
+ @name_valid_sets.each_with_index.flat_map { |n, i| inner_eval(n, i + 1) }
55
55
  end
56
56
 
57
57
  def eval_train
@@ -12,7 +12,7 @@ module LightGBM
12
12
  end
13
13
 
14
14
  def check_param(v)
15
- raise ArgumentError, "Invalid parameter" if /[[:space:]]/.match(v)
15
+ raise ArgumentError, "Invalid parameter" if /[[:space:]]/.match?(v)
16
16
  v
17
17
  end
18
18
 
@@ -1,3 +1,3 @@
1
1
  module LightGBM
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
data/lib/lightgbm.rb CHANGED
@@ -145,7 +145,7 @@ module LightGBM
145
145
  boosters.each(&:update)
146
146
 
147
147
  scores = {}
148
- boosters.map(&:eval_valid).map(&:reverse).flatten(1).each do |r|
148
+ boosters.map(&:eval_valid).flat_map(&:reverse).each do |r|
149
149
  (scores[r[1]] ||= []) << r[2]
150
150
  end
151
151
 
Binary file
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lightgbm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-15 00:00:00.000000000 Z
11
+ date: 2024-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi