vowpalwabbit 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f570468a7c83ef8a9fc34ec2fba246cc0aeb6b381ae8bda5fbb34a962fc7c9e
4
- data.tar.gz: 2c5e3fcd0bc5f72793b6333781fcdc1ac9a41a9e72007af62c5e112ebbe4a6f2
3
+ metadata.gz: 81b4580c00f05d79fc6a5ace4d0ef37158985033f6136b55c067d08084554b8f
4
+ data.tar.gz: 8e6fa92f10a340ece273799dd6a83680ea358ed0f0ee4f0d12a79da26e972f84
5
5
  SHA512:
6
- metadata.gz: dc8c59babe46f6bb6e046be66f0fdebf68ef3f405f12d7affc327ec0ceb19f2f183ca44313539ca4e51c6ec7814a839e9ca647d091cc511f7bde638bca4dce3e
7
- data.tar.gz: 26286a69cb72eb38ed4c53dd0fe641dbf12be6d52810e52a3b0a4a7b1e295708a7129f939363df22d275add22cdfec72513d1b247bd3439d02c8e76de0508e98
6
+ metadata.gz: 0d83ce2adb642d6dabdf2fbe7fb087b6adc869e175712bcfd7916e6343b88f43fcccd045cabeae89a22e4319e86a91e238b7e4b17f3d1ae7def14affb73e3fd8
7
+ data.tar.gz: 7a85762de630a058b88ca462099a7fd1536de44a4264f4bc65f17c6aa7c33cb38eccdb582f3b25e110d82fedacfc62352a08130cae646b5b20cb8406a2ef5707
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.1.3 (2022-02-02)
2
+
3
+ - Added support for Ubuntu package
4
+
1
5
  ## 0.1.2 (2020-08-18)
2
6
 
3
7
  - Changed to BSD 3-Clause license to match Vowpal Wabbit
data/LICENSE.txt CHANGED
@@ -1,7 +1,7 @@
1
1
  BSD 3-Clause License
2
2
 
3
3
  Copyright (c) Microsoft Corp 2012-2014, Yahoo! Inc. 2007-2012, and many individual contributors
4
- Copyright (c) 2019, Andrew Kane
4
+ Copyright (c) 2019-2021, Andrew Kane
5
5
  All rights reserved.
6
6
 
7
7
  Redistribution and use in source and binary forms, with or without
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # Vowpal Wabbit
1
+ # Vowpal Wabbit Ruby
2
2
 
3
3
  [Vowpal Wabbit](https://vowpalwabbit.org) - fast online machine learning - for Ruby
4
4
 
5
- [![Build Status](https://travis-ci.org/ankane/vowpalwabbit.svg?branch=master)](https://travis-ci.org/ankane/vowpalwabbit)
5
+ [![Build Status](https://github.com/ankane/vowpalwabbit-ruby/workflows/build/badge.svg?branch=master)](https://github.com/ankane/vowpalwabbit-ruby/actions)
6
6
 
7
7
  ## Installation
8
8
 
@@ -12,10 +12,16 @@ First, install the [Vowpal Wabbit C++ library](https://vowpalwabbit.org/start.ht
12
12
  brew install vowpal-wabbit
13
13
  ```
14
14
 
15
- Add this line to your application’s Gemfile:
15
+ And for Ubuntu, use:
16
+
17
+ ```sh
18
+ sudo apt install libvw0
19
+ ```
20
+
21
+ Then add this line to your application’s Gemfile:
16
22
 
17
23
  ```ruby
18
- gem 'vowpalwabbit'
24
+ gem "vowpalwabbit"
19
25
  ```
20
26
 
21
27
  ## Getting Started
@@ -91,10 +97,10 @@ Data can be an array of arrays
91
97
  [[1, 2, 3], [4, 5, 6]]
92
98
  ```
93
99
 
94
- Or a Numo NArray
100
+ Or a Numo array
95
101
 
96
102
  ```ruby
97
- Numo::DFloat.new(3, 2).seq
103
+ Numo::NArray.cast([[1, 2, 3], [4, 5, 6]])
98
104
  ```
99
105
 
100
106
  Or an array of strings
@@ -126,22 +132,22 @@ Read more about the [input format](https://github.com/VowpalWabbit/vowpal_wabbit
126
132
 
127
133
  ## History
128
134
 
129
- View the [changelog](https://github.com/ankane/vowpalwabbit/blob/master/CHANGELOG.md)
135
+ View the [changelog](https://github.com/ankane/vowpalwabbit-ruby/blob/master/CHANGELOG.md)
130
136
 
131
137
  ## Contributing
132
138
 
133
139
  Everyone is encouraged to help improve this project. Here are a few ways you can help:
134
140
 
135
- - [Report bugs](https://github.com/ankane/vowpalwabbit/issues)
136
- - Fix bugs and [submit pull requests](https://github.com/ankane/vowpalwabbit/pulls)
141
+ - [Report bugs](https://github.com/ankane/vowpalwabbit-ruby/issues)
142
+ - Fix bugs and [submit pull requests](https://github.com/ankane/vowpalwabbit-ruby/pulls)
137
143
  - Write, clarify, or fix documentation
138
144
  - Suggest or add new features
139
145
 
140
146
  To get started with development:
141
147
 
142
148
  ```sh
143
- git clone https://github.com/ankane/vowpalwabbit.git
144
- cd vowpalwabbit
149
+ git clone https://github.com/ankane/vowpalwabbit-ruby.git
150
+ cd vowpalwabbit-ruby
145
151
  bundle install
146
152
  bundle exec rake test
147
153
  ```
@@ -64,21 +64,21 @@ module VowpalWabbit
64
64
 
65
65
  def param_str(params)
66
66
  args =
67
- params.map do |k, v|
67
+ params.flat_map do |k, v|
68
68
  check_param(k.to_s)
69
69
  check_param(v.to_s)
70
70
 
71
71
  if v == true
72
- "--#{k}"
72
+ ["--#{k}"]
73
73
  elsif !v
74
- nil
74
+ []
75
75
  elsif k.size == 1
76
- "-#{k} #{v}"
76
+ ["-#{k}", v]
77
77
  else
78
- "--#{k} #{v}"
78
+ ["--#{k}", v]
79
79
  end
80
80
  end
81
- args.compact.join(" ")
81
+ args.join(" ")
82
82
  end
83
83
 
84
84
  def check_param(v)
@@ -1,3 +1,3 @@
1
1
  module VowpalWabbit
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
data/lib/vowpalwabbit.rb CHANGED
@@ -13,7 +13,7 @@ module VowpalWabbit
13
13
  class << self
14
14
  attr_accessor :ffi_lib
15
15
  end
16
- self.ffi_lib = ["vw_c_wrapper"]
16
+ self.ffi_lib = ["vw_c_wrapper", "libvw_c_wrapper.so.0"]
17
17
 
18
18
  # friendlier error message
19
19
  autoload :FFI, "vowpalwabbit/ffi"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vowpalwabbit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-19 00:00:00.000000000 Z
11
+ date: 2022-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -24,64 +24,8 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: rake
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: minitest
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '5'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '5'
69
- - !ruby/object:Gem::Dependency
70
- name: numo-narray
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- description:
84
- email: andrew@chartkick.com
27
+ description:
28
+ email: andrew@ankane.org
85
29
  executables: []
86
30
  extensions: []
87
31
  extra_rdoc_files: []
@@ -95,11 +39,11 @@ files:
95
39
  - lib/vowpalwabbit/model.rb
96
40
  - lib/vowpalwabbit/regressor.rb
97
41
  - lib/vowpalwabbit/version.rb
98
- homepage: https://github.com/ankane/vowpalwabbit
42
+ homepage: https://github.com/ankane/vowpalwabbit-ruby
99
43
  licenses:
100
44
  - BSD-3-Clause
101
45
  metadata: {}
102
- post_install_message:
46
+ post_install_message:
103
47
  rdoc_options: []
104
48
  require_paths:
105
49
  - lib
@@ -114,8 +58,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
58
  - !ruby/object:Gem::Version
115
59
  version: '0'
116
60
  requirements: []
117
- rubygems_version: 3.1.2
118
- signing_key:
61
+ rubygems_version: 3.3.3
62
+ signing_key:
119
63
  specification_version: 4
120
64
  summary: Fast online machine learning for Ruby
121
65
  test_files: []