cmfrec 0.3.2 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d530b650bba045d26a7c683ca7c8b8e7321c2043a8e80556c3c7c865a441432
4
- data.tar.gz: d49736337135bc7b956a96f631ad54b88b354d3fbbe91e925962ba15fbd3735d
3
+ metadata.gz: 47db0dbacef97527ad7947e2c9a38daa21700f9159d55fa19bc9efb404fb7b7b
4
+ data.tar.gz: 16f3a1a20149a3182d681d0b1c8727eb95c841e7bc459b9fe7abf319df98cb83
5
5
  SHA512:
6
- metadata.gz: 36d8fcfd4cd87539f728afd2d927bc8c4ea9a75a437bc32617dabb416ba9b322dcdc135855fa7144615955b42013029ada465c6209c38f9beca2e77f2d1059e9
7
- data.tar.gz: c21ca152c2ec3edcf134ac9c915ca8ee3bd06c7ebd2c09e95bce592e9d5d64ac1dbbb8f7791756377b7febc899113ce255b4a8054b843fc1a6042ea50b8acaa3
6
+ metadata.gz: 06eced36e5c9d529da867507586c607f3020f0145d473feaae24eaecaebbfe07c2fab82160823aee36ade1f49d5b555dff7e479e16f239d833df09641f04e122
7
+ data.tar.gz: b432da1dec1af34c4beaa67413eeb6d58de68df5566b72bb9cab053335300a92f6ec633e14bdb4d824097b03e83aa1970d8d74d983be0b6a2ad270fc03db08b0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.3.4 (2025-11-22)
2
+
3
+ - Added ARM shared library for Linux
4
+
5
+ ## 0.3.3 (2025-09-30)
6
+
7
+ - Fixed error with Rover 0.5+
8
+
1
9
  ## 0.3.2 (2025-05-04)
2
10
 
3
11
  - Fixed crash with Fiddle 1.1.7+
data/LICENSE.txt CHANGED
@@ -1,7 +1,7 @@
1
1
  MIT License
2
2
 
3
3
  Copyright (c) 2020 David Cortes
4
- Copyright (c) 2020-2024 Andrew Kane
4
+ Copyright (c) 2020-2025 Andrew Kane
5
5
 
6
6
  All rights reserved.
7
7
 
data/README.md CHANGED
@@ -46,7 +46,7 @@ recommender.fit([
46
46
  ])
47
47
  ```
48
48
 
49
- > Use `value` instead of rating for implicit feedback
49
+ > Use `value` instead of `rating` for implicit feedback
50
50
 
51
51
  Get recommendations for a user in the training data
52
52
 
@@ -620,11 +620,7 @@ module Cmfrec
620
620
  def to_dataset(dataset)
621
621
  if defined?(Rover::DataFrame) && dataset.is_a?(Rover::DataFrame)
622
622
  # convert keys to symbols
623
- dataset = dataset.dup
624
- dataset.keys.each do |k, v|
625
- dataset[k.to_sym] ||= dataset.delete(k)
626
- end
627
- dataset.to_a
623
+ dataset.each_row.map { |v| v.transform_keys(&:to_sym) }
628
624
  elsif defined?(Daru::DataFrame) && dataset.is_a?(Daru::DataFrame)
629
625
  # convert keys to symbols
630
626
  dataset = dataset.dup
@@ -1,3 +1,3 @@
1
1
  module Cmfrec
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.4"
3
3
  end
data/lib/cmfrec.rb CHANGED
@@ -25,7 +25,11 @@ module Cmfrec
25
25
  "x86_64-darwin/libcmfrec.dylib"
26
26
  end
27
27
  else
28
- "x86_64-linux/libcmfrec.so"
28
+ if RbConfig::CONFIG["host_cpu"] =~ /arm|aarch64/i
29
+ "aarch64-linux/libcmfrec.so"
30
+ else
31
+ "x86_64-linux/libcmfrec.so"
32
+ end
29
33
  end
30
34
  vendor_lib = File.expand_path("../vendor/#{lib_path}", __dir__)
31
35
  self.ffi_lib = [vendor_lib]
@@ -0,0 +1,57 @@
1
+ For the included LFBGS library (files "lbfgs.h", "lbfgs.c", "arithmetic_ansi.h"):
2
+
3
+ The MIT License
4
+
5
+ Copyright (c) 1990 Jorge Nocedal
6
+ Copyright (c) 2007-2010 Naoaki Okazaki
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining a
9
+ copy of this software and associated documentation files (the "Software"),
10
+ to deal in the Software without restriction, including without limitation
11
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
12
+ and/or sell copies of the Software, and to permit persons to whom the
13
+ Software is furnished to do so, subject to the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included in
16
+ all copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
+ THE SOFTWARE.
25
+
26
+ For the included ziggurat tables (file "ziggurat.h"):
27
+
28
+ Copyright (c) 2005-2022, NumPy Developers.
29
+ All rights reserved.
30
+
31
+ Redistribution and use in source and binary forms, with or without
32
+ modification, are permitted provided that the following conditions are
33
+ met:
34
+
35
+ * Redistributions of source code must retain the above copyright
36
+ notice, this list of conditions and the following disclaimer.
37
+
38
+ * Redistributions in binary form must reproduce the above
39
+ copyright notice, this list of conditions and the following
40
+ disclaimer in the documentation and/or other materials provided
41
+ with the distribution.
42
+
43
+ * Neither the name of the NumPy Developers nor the names of any
44
+ contributors may be used to endorse or promote products derived
45
+ from this software without specific prior written permission.
46
+
47
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
48
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
49
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
50
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
51
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
52
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
53
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
54
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
55
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
56
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
57
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,23 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020-2022 David Cortes
4
+
5
+ All rights reserved.
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to
9
+ deal in the Software without restriction, including without limitation the
10
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
11
+ sell copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in
15
+ all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
23
+ IN THE SOFTWARE.
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmfrec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
@@ -36,6 +36,9 @@ files:
36
36
  - lib/cmfrec/ffi.rb
37
37
  - lib/cmfrec/recommender.rb
38
38
  - lib/cmfrec/version.rb
39
+ - vendor/aarch64-linux/COPYRIGHTS
40
+ - vendor/aarch64-linux/LICENSE
41
+ - vendor/aarch64-linux/libcmfrec.so
39
42
  - vendor/arm64-darwin/COPYRIGHTS
40
43
  - vendor/arm64-darwin/LICENSE
41
44
  - vendor/arm64-darwin/libcmfrec.dylib
@@ -63,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
66
  - !ruby/object:Gem::Version
64
67
  version: '0'
65
68
  requirements: []
66
- rubygems_version: 3.6.7
69
+ rubygems_version: 3.6.9
67
70
  specification_version: 4
68
71
  summary: Recommendations for Ruby using collective matrix factorization
69
72
  test_files: []