numo-liblinear 2.4.0 → 3.0.1
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 +4 -4
- data/CHANGELOG.md +11 -0
- data/README.md +3 -1
- data/ext/numo/liblinear/extconf.rb +16 -4
- data/lib/numo/liblinear/version.rb +1 -1
- data/lib/numo/liblinear.rb +1 -1
- metadata +9 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 99231aa2faea06b9f5f146e56360e6cbb510418284dba28893f0eb468c5032fd
|
|
4
|
+
data.tar.gz: 70a872b39f277e6ea6465e25fd9df9772d212b307eeab817acca3be89c6a4413
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 11e1870522975ca23a949cd198e0a9444ee93757804320ec61522d946b1056c9f87340f0be4562fdf0d29e778b7fa8db5a6c885c65f9978a142ad2468635aa8a
|
|
7
|
+
data.tar.gz: 95b9371d5d5eab96c4960d7eebe63b7b598db51d482103b5bae261ca5de93f7f01b272921d6955cc7d8a970c6732e19b7c19b4171d652df32fdb445911cdfcef
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
# [[3.0.1](https://github.com/yoshoku/numo-liblinear/compare/v3.0.0...v3.0.1)] - 2025-11-19
|
|
2
|
+
|
|
3
|
+
- Set the required version of numo-narray-alt to 0.9.10 or higher.
|
|
4
|
+
- Change require statement to explicitly load numo/narray/alt.
|
|
5
|
+
|
|
6
|
+
# [[3.0.0](https://github.com/yoshoku/numo-liblinear/compare/v2.4.0...v3.0.0)] - 2025-10-01
|
|
7
|
+
|
|
8
|
+
**Breaking chage**
|
|
9
|
+
|
|
10
|
+
- Change dependency from numo-narray to [numo-narray-alt](https://github.com/yoshoku/numo-narray-alt).
|
|
11
|
+
|
|
1
12
|
# [[2.4.0](https://github.com/yoshoku/numo-liblinear/compare/v2.3.0...v2.4.0)] - 2025-05-31
|
|
2
13
|
|
|
3
14
|
- Update bundled LIBLINEAR to 2.49
|
data/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://github.com/yoshoku/numo-liblinear/actions?query=workflow%3Abuild)
|
|
4
4
|
[](https://badge.fury.io/rb/numo-liblinear)
|
|
5
5
|
[](https://github.com/yoshoku/numo-liblinear/blob/main/LICENSE.txt)
|
|
6
|
-
[](https://
|
|
6
|
+
[](https://gemdocs.org/gems/numo-liblinear/)
|
|
7
7
|
|
|
8
8
|
Numo::Liblinear is a Ruby gem binding to the [LIBLINEAR](https://www.csie.ntu.edu.tw/~cjlin/liblinear/) library.
|
|
9
9
|
LIBLINEAR is one of the famous libraries for large-scale regularized linear classification and regression.
|
|
@@ -14,6 +14,8 @@ Note: There are other useful Ruby gems binding to LIBLINEAR:
|
|
|
14
14
|
[liblinear-ruby](https://github.com/kei500/liblinear-ruby) by Kei Tsuchiya and
|
|
15
15
|
[liblinear-ruby-swig](https://github.com/tomz/liblinear-ruby-swig) by Tom Zeng.
|
|
16
16
|
|
|
17
|
+
Note: Since v3.0.0, this library uses [Numo::NArray Alternative](https://github.com/yoshoku/numo-narray-alt) instead of Numo::NArray as a dependency.
|
|
18
|
+
|
|
17
19
|
## Installation
|
|
18
20
|
Numo::Liblinear bundles LIBLINEAR. There is no need to install LIBLINEAR in advance.
|
|
19
21
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require 'mkmf'
|
|
2
|
-
require 'numo/narray'
|
|
2
|
+
require 'numo/narray/alt'
|
|
3
3
|
|
|
4
4
|
$LOAD_PATH.each do |lp|
|
|
5
5
|
if File.exist?(File.join(lp, 'numo/numo/narray.h'))
|
|
@@ -12,8 +12,8 @@ abort 'numo/narray.h not found.' unless have_header('numo/narray.h')
|
|
|
12
12
|
|
|
13
13
|
if RUBY_PLATFORM =~ /mswin|cygwin|mingw/
|
|
14
14
|
$LOAD_PATH.each do |lp|
|
|
15
|
-
if File.exist?(File.join(lp, 'numo/libnarray.a'))
|
|
16
|
-
$LDFLAGS = "-L#{lp}/numo #{$LDFLAGS}"
|
|
15
|
+
if File.exist?(File.join(lp, 'numo/narray/libnarray.a'))
|
|
16
|
+
$LDFLAGS = "-L#{lp}/numo/narray #{$LDFLAGS}"
|
|
17
17
|
break
|
|
18
18
|
end
|
|
19
19
|
end
|
|
@@ -26,7 +26,19 @@ if RUBY_PLATFORM.match?(/darwin/) && Gem::Version.new('3.1.0') <= Gem::Version.n
|
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
|
|
30
|
+
have_libcpp = false
|
|
31
|
+
if RUBY_PLATFORM.include?('darwin')
|
|
32
|
+
if have_library('c++')
|
|
33
|
+
have_libcpp = true
|
|
34
|
+
else
|
|
35
|
+
warn 'libc++ is not found.'
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
if !have_libcpp && !RUBY_PLATFORM.include?('mswin')
|
|
40
|
+
warn 'libstdc++ is not found.' unless have_library('stdc++')
|
|
41
|
+
end
|
|
30
42
|
|
|
31
43
|
$srcs = Dir.glob("#{$srcdir}/**/*.cpp").map { |path| File.basename(path) }
|
|
32
44
|
$srcs.concat(%w[daxpy.c ddot.c dnrm2.c dscal.c])
|
data/lib/numo/liblinear.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: numo-liblinear
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 3.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- yoshoku
|
|
@@ -10,19 +10,19 @@ cert_chain: []
|
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
|
-
name: numo-narray
|
|
13
|
+
name: numo-narray-alt
|
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
|
15
15
|
requirements:
|
|
16
|
-
- - "
|
|
16
|
+
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 0.9.
|
|
18
|
+
version: 0.9.10
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
|
-
- - "
|
|
23
|
+
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 0.9.
|
|
25
|
+
version: 0.9.10
|
|
26
26
|
description: |
|
|
27
27
|
Numo::Liblinear is a Ruby gem binding to the LIBLINEAR library.
|
|
28
28
|
LIBLINEAR is one of the famous libraries for large-scale regularized linear classification and regression.
|
|
@@ -60,7 +60,8 @@ licenses:
|
|
|
60
60
|
metadata:
|
|
61
61
|
homepage_uri: https://github.com/yoshoku/numo-liblinear
|
|
62
62
|
source_code_uri: https://github.com/yoshoku/numo-liblinear
|
|
63
|
-
|
|
63
|
+
changelog_uri: https://github.com/yoshoku/numo-liblinear/blob/main/CHANGELOG.md
|
|
64
|
+
documentation_uri: https://gemdocs.org/gems/numo-liblinear/3.0.1/
|
|
64
65
|
rubygems_mfa_required: 'true'
|
|
65
66
|
rdoc_options: []
|
|
66
67
|
require_paths:
|
|
@@ -76,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
76
77
|
- !ruby/object:Gem::Version
|
|
77
78
|
version: '0'
|
|
78
79
|
requirements: []
|
|
79
|
-
rubygems_version: 3.
|
|
80
|
+
rubygems_version: 3.7.2
|
|
80
81
|
specification_version: 4
|
|
81
82
|
summary: Numo::Liblinear is a Ruby gem binding to the LIBLINEAR library. Numo::Liblinear
|
|
82
83
|
makes to use the LIBLINEAR functions with dataset represented by Numo::NArray.
|