bors 0.0.2 → 0.0.3
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.
- data/VERSION +1 -1
- data/bors.gemspec +2 -2
- data/lib/bors/command_line.rb +3 -4
- data/lib/bors/result.rb +2 -0
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/bors.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "bors"
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Sam Richardson"]
|
12
|
-
s.date = "2013-
|
12
|
+
s.date = "2013-02-11"
|
13
13
|
s.description = "Wrapper for the Vowpal Wabbit library"
|
14
14
|
s.email = "sam@richardson.co.nz"
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/bors/command_line.rb
CHANGED
@@ -6,7 +6,7 @@ class Bors
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def to_s
|
9
|
-
"vw #{examples} #{cache_file} #{create_cache} #{passes} #{initial_regressor} #{final_regressor} #{predictions} #{min_prediction} #{max_prediction}"
|
9
|
+
"vw --data #{examples} #{training_mode} #{cache_file} #{create_cache} #{passes} #{initial_regressor} #{bit_precision} #{quadratic} #{ngram} #{final_regressor} #{predictions} #{min_prediction} #{max_prediction} #{loss_function}".squeeze(' ')
|
10
10
|
end
|
11
11
|
|
12
12
|
def examples
|
@@ -14,12 +14,11 @@ class Bors
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def create_cache
|
17
|
-
|
18
|
-
@options[:create_cache] == true ? "-c" : ""
|
17
|
+
@options[:create_cache] == true ? "-c" : nil
|
19
18
|
end
|
20
19
|
|
21
20
|
def training_mode
|
22
|
-
@options[:training_mode] == true ?
|
21
|
+
@options[:training_mode] == true ? "-t" : nil
|
23
22
|
end
|
24
23
|
|
25
24
|
def run!
|
data/lib/bors/result.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-02-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: oj
|
@@ -144,7 +144,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
144
144
|
version: '0'
|
145
145
|
segments:
|
146
146
|
- 0
|
147
|
-
hash:
|
147
|
+
hash: -2611789351950002926
|
148
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
149
|
none: false
|
150
150
|
requirements:
|