rb-libsvm 1.4.3 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/CHANGELOG.md +1 -1
- data/MIT-LICENSE +1 -1
- data/README.md +1 -1
- data/ext/libsvm/svm.cpp +3 -2
- data/ext/libsvm/svm.h +1 -1
- data/lib/libsvm/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 2a9d797f41f999146257203fe3e0e1ef8a0e6145b432c21e00615b2c338f6a99
|
|
4
|
+
data.tar.gz: 9cbf823d14c85463d599f862c0ca2e11ea5cb9738db198a091d7168b7d005d53
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d6039ba512d500edb6bb7f5c32edeaf179cc2fe91c1cb0b8e094c1b5cd8117b493c00c5246b070f4f9581976a77e49aabb6b18c93b2f14cc0b7311022809fe11
|
|
7
|
+
data.tar.gz: b6801f7f1725507c10dd7773019e2da2f170a94265762d479336f10b12a2233ea2db9b802a88274130d05e115f475266b5ca89020c9aca529fdc45043d2d3fba
|
data/CHANGELOG.md
CHANGED
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
|
@@ -25,7 +25,7 @@ this gem. You should install the original package if you need them.
|
|
|
25
25
|
It is helpful to consult the [README of the LIBSVM][README] package for
|
|
26
26
|
reference when configuring the training parameters.
|
|
27
27
|
|
|
28
|
-
Currently this package includes libsvm version 3.
|
|
28
|
+
Currently this package includes libsvm version 3.24.
|
|
29
29
|
|
|
30
30
|
## Dependencies
|
|
31
31
|
|
data/ext/libsvm/svm.cpp
CHANGED
|
@@ -3065,10 +3065,11 @@ const char *svm_check_parameter(const svm_problem *prob, const svm_parameter *pa
|
|
|
3065
3065
|
kernel_type != PRECOMPUTED)
|
|
3066
3066
|
return "unknown kernel type";
|
|
3067
3067
|
|
|
3068
|
-
if(
|
|
3068
|
+
if((kernel_type == POLY || kernel_type == RBF || kernel_type == SIGMOID) &&
|
|
3069
|
+
param->gamma < 0)
|
|
3069
3070
|
return "gamma < 0";
|
|
3070
3071
|
|
|
3071
|
-
if(param->degree < 0)
|
|
3072
|
+
if(kernel_type == POLY && param->degree < 0)
|
|
3072
3073
|
return "degree of polynomial kernel < 0";
|
|
3073
3074
|
|
|
3074
3075
|
// cache_size,eps,C,nu,p,shrinking
|
data/ext/libsvm/svm.h
CHANGED
data/lib/libsvm/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rb-libsvm
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- C. Florian Ebeling
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2020-08-11 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rake-compiler
|
|
@@ -101,8 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
101
101
|
- !ruby/object:Gem::Version
|
|
102
102
|
version: '0'
|
|
103
103
|
requirements: []
|
|
104
|
-
|
|
105
|
-
rubygems_version: 2.6.14
|
|
104
|
+
rubygems_version: 3.1.2
|
|
106
105
|
signing_key:
|
|
107
106
|
specification_version: 4
|
|
108
107
|
summary: Ruby bindings for LIBSVM
|