libsvmloader 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: 99f74e014a9ef351e39d93497123ae40566c9b66
4
- data.tar.gz: 719a741d997fe138dd7f5648fbb2280a707e0f67
3
+ metadata.gz: 6dd47447989d49679eb08906fed4b769599010d4
4
+ data.tar.gz: e72c3f971474f334d77a6cc023177234df573134
5
5
  SHA512:
6
- metadata.gz: 4d83f15beda1f7e6ff7a55158c674484835046004eb44feeacb9eb6117d34b0f7b240a148ae3ab0948d75f6f2697344a79b332458a6b8f4bc9d24da418395299
7
- data.tar.gz: 7bb5e7d6e5219435280085f08c012dff69972a617d14232143b1500ac56628a6dcb89dedcd7349b89556c9cc1e85f732fa65168385941fff043b27fae3f46365
6
+ metadata.gz: 12d4211f18451f7cd05784692d723cfdd2d44d316bab57b6b914692ad74105dd7afa109dc1c5f9e0c54e028534132076f77f2dbd68ad671ed4e0a5e9e0bd978f
7
+ data.tar.gz: 4707aa881f45015ccdc307aec89c7f6cce5e8007774b9951537aeb6a8e742bfc5b77409580355f462a290c80e1238a84f1b9d995f5f6e561332f4689786f24e9
data/lib/libsvmloader.rb CHANGED
@@ -62,6 +62,7 @@ class LibSVMLoader
62
62
  [idx, val.to_f]
63
63
  end
64
64
  max_idx = ftvec.map { |el| el[0] }.max
65
+ max_idx ||= 0
65
66
  [label, ftvec, max_idx]
66
67
  end
67
68
 
@@ -5,7 +5,7 @@ class LibSVMLoader
5
5
  module VERSION
6
6
  MAJOR = 0
7
7
  MINOR = 1
8
- TINY = 0
8
+ TINY = 1
9
9
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libsvmloader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-12 00:00:00.000000000 Z
11
+ date: 2017-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  requirements: []
110
110
  rubyforge_project:
111
- rubygems_version: 2.6.11
111
+ rubygems_version: 2.6.13
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: LibSVMLoader loads (and dumps) dataset file with the libsvm file format.