libmf 0.2.5 → 0.2.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 499cc67221be5e767caa7257e69c23a2b17c537c5950e2eeebb7de21d5bec1f0
4
- data.tar.gz: 9345dc3804dfc928bbdb03b588e64f20fbb3ddb5a3674b65972c122842bef60e
3
+ metadata.gz: 33b8ba1c7cf9de8e19fa9775ecdb445bc0f2f4323401cccbf016ff6a81a04a00
4
+ data.tar.gz: 9ff88bdafac8bbfe0c99ccc0c0b7dfb7a9092246de1105c7f99ccade29b9c88b
5
5
  SHA512:
6
- metadata.gz: 6cd517a3e7eb418390012352a62de72aa9e3a4077b08c5d8602e89a9a8af0dcdc654a51359641e374d263804189a814afffa8e2f55db52ef7506e222e2143e5f
7
- data.tar.gz: 5dad62dd22cd82499d4f0c2b2c06792945c50065a2517d89baeec8d00c62e2628d62d3702cc3964344c3e437f4281afd1f79f58291efca12f3c788e5ed07d0e1
6
+ metadata.gz: 021eca76e96ceca2cd484b7f7796a649529f3b20c80d494143cfaf43e617d23ac55ae50bdcd345808e277b31d304ea6e6a53c937b3e9a200f47ae226f27e4f2b
7
+ data.tar.gz: 916b78a5e62d19e4d6a9e1433350bb26982d43393029e4e883ed803f89a03f6db766ab10718120a73db1f0ad7ac80607d475a10a7c203d117ca1706e80618345
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.2.6 (2021-12-02)
2
+
3
+ - Improved ARM detection
4
+
1
5
  ## 0.2.5 (2021-10-18)
2
6
 
3
7
  - Added named loss functions
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
- # LIBMF
1
+ # LIBMF Ruby
2
2
 
3
3
  [LIBMF](https://github.com/cjlin1/libmf) - large-scale sparse matrix factorization - for Ruby
4
4
 
5
5
  Check out [Disco](https://github.com/ankane/disco) for higher-level collaborative filtering
6
6
 
7
- [![Build Status](https://github.com/ankane/libmf/workflows/build/badge.svg?branch=master)](https://github.com/ankane/libmf/actions)
7
+ [![Build Status](https://github.com/ankane/libmf-ruby/workflows/build/badge.svg?branch=master)](https://github.com/ankane/libmf-ruby/actions)
8
8
 
9
9
  ## Installation
10
10
 
@@ -16,14 +16,13 @@ gem 'libmf'
16
16
 
17
17
  ## Getting Started
18
18
 
19
- Prep your data in the format `[row_index, column_index, value]`
19
+ Prep your data in the format `row_index, column_index, value`
20
20
 
21
21
  ```ruby
22
- data = [
23
- [0, 0, 5.0],
24
- [0, 2, 3.5],
25
- [1, 1, 4.0]
26
- ]
22
+ data = Libmf::Matrix.new
23
+ data.push(0, 0, 5.0)
24
+ data.push(0, 2, 3.5)
25
+ data.push(1, 1, 4.0)
27
26
  ```
28
27
 
29
28
  Create a model
@@ -159,22 +158,22 @@ model.q_factors(format: :numo)
159
158
 
160
159
  ## History
161
160
 
162
- View the [changelog](https://github.com/ankane/libmf/blob/master/CHANGELOG.md)
161
+ View the [changelog](https://github.com/ankane/libmf-ruby/blob/master/CHANGELOG.md)
163
162
 
164
163
  ## Contributing
165
164
 
166
165
  Everyone is encouraged to help improve this project. Here are a few ways you can help:
167
166
 
168
- - [Report bugs](https://github.com/ankane/libmf/issues)
169
- - Fix bugs and [submit pull requests](https://github.com/ankane/libmf/pulls)
167
+ - [Report bugs](https://github.com/ankane/libmf-ruby/issues)
168
+ - Fix bugs and [submit pull requests](https://github.com/ankane/libmf-ruby/pulls)
170
169
  - Write, clarify, or fix documentation
171
170
  - Suggest or add new features
172
171
 
173
172
  To get started with development:
174
173
 
175
174
  ```sh
176
- git clone --recursive https://github.com/ankane/libmf.git
177
- cd libmf
175
+ git clone --recursive https://github.com/ankane/libmf-ruby.git
176
+ cd libmf-ruby
178
177
  bundle install
179
178
  bundle exec rake vendor:all
180
179
  bundle exec rake test
data/lib/libmf/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Libmf
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
data/lib/libmf.rb CHANGED
@@ -16,13 +16,13 @@ module Libmf
16
16
  if Gem.win_platform?
17
17
  "mf.dll"
18
18
  elsif RbConfig::CONFIG["host_os"] =~ /darwin/i
19
- if RbConfig::CONFIG["host_cpu"] =~ /arm/i
19
+ if RbConfig::CONFIG["host_cpu"] =~ /arm|aarch64/i
20
20
  "libmf.arm64.dylib"
21
21
  else
22
22
  "libmf.dylib"
23
23
  end
24
24
  else
25
- if RbConfig::CONFIG["host_cpu"] =~ /aarch64/i
25
+ if RbConfig::CONFIG["host_cpu"] =~ /arm|aarch64/i
26
26
  "libmf.arm64.so"
27
27
  else
28
28
  "libmf.so"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libmf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-19 00:00:00.000000000 Z
11
+ date: 2021-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -46,7 +46,7 @@ files:
46
46
  - vendor/libmf.dylib
47
47
  - vendor/libmf.so
48
48
  - vendor/mf.dll
49
- homepage: https://github.com/ankane/libmf
49
+ homepage: https://github.com/ankane/libmf-ruby
50
50
  licenses:
51
51
  - BSD-3-Clause
52
52
  metadata: {}
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  - !ruby/object:Gem::Version
66
66
  version: '0'
67
67
  requirements: []
68
- rubygems_version: 3.2.22
68
+ rubygems_version: 3.2.32
69
69
  signing_key:
70
70
  specification_version: 4
71
71
  summary: Large-scale sparse matrix factorization for Ruby