libmf 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +12 -13
- data/lib/libmf/version.rb +1 -1
- data/lib/libmf.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33b8ba1c7cf9de8e19fa9775ecdb445bc0f2f4323401cccbf016ff6a81a04a00
|
4
|
+
data.tar.gz: 9ff88bdafac8bbfe0c99ccc0c0b7dfb7a9092246de1105c7f99ccade29b9c88b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 021eca76e96ceca2cd484b7f7796a649529f3b20c80d494143cfaf43e617d23ac55ae50bdcd345808e277b31d304ea6e6a53c937b3e9a200f47ae226f27e4f2b
|
7
|
+
data.tar.gz: 916b78a5e62d19e4d6a9e1433350bb26982d43393029e4e883ed803f89a03f6db766ab10718120a73db1f0ad7ac80607d475a10a7c203d117ca1706e80618345
|
data/CHANGELOG.md
CHANGED
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 `
|
19
|
+
Prep your data in the format `row_index, column_index, value`
|
20
20
|
|
21
21
|
```ruby
|
22
|
-
data =
|
23
|
-
|
24
|
-
|
25
|
-
|
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
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.
|
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-
|
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.
|
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
|