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 CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "bors"
8
- s.version = "0.0.2"
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-01-25"
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 = [
@@ -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
- raise Exceptions::ArgumentError.new('Must specify the cache file paramater as well when creating the cache') if @options[:create_cache] == true && @options[:cache_file].nil?
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 ? true : false
21
+ @options[:training_mode] == true ? "-t" : nil
23
22
  end
24
23
 
25
24
  def run!
@@ -4,6 +4,8 @@ require_relative "result/statistics"
4
4
 
5
5
  class Bors
6
6
  class Result
7
+
8
+ attr_reader :data
7
9
 
8
10
  def initialize(data)
9
11
  @data = data
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.2
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-01-25 00:00:00.000000000 Z
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: 174562694898033654
147
+ hash: -2611789351950002926
148
148
  required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements: