answer-factory 0.1.3.5 → 0.1.3.6

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3.5
1
+ 0.1.3.6
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{answer-factory}
8
- s.version = "0.1.3.5"
8
+ s.version = "0.1.3.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Bill Tozier", "Trek Glowacki", "Jesse Sielaff"]
@@ -32,7 +32,7 @@ class GenerationStation < Workstation
32
32
  def initialize(name, options = {})
33
33
  super
34
34
  @random_program_maker = Machines::BuildRandom.new(
35
- how_many:50,
35
+ how_many:10,
36
36
  target_size_in_points:80,
37
37
  reference_names:["x1", "x2", "x3", "x4"],
38
38
  instruction_names:[:int_add, :int_subtract, :int_multiply,
@@ -57,10 +57,8 @@ class ScoringStation < Workstation
57
57
  super
58
58
  @scorer = Machines::EvaluateWithTestCases.new(
59
59
  :name => :polynomial_fit,
60
- training_data_csv: "poly1.csv")
61
-
60
+ training_data_csv: "poly1.csv")
62
61
  @scorer.install_training_data_from_csv
63
-
64
62
  @scorer.build_sensor("y1") {|interpreter| interpreter.peek_value(:int) || 2000000}
65
63
  end
66
64
 
@@ -149,11 +147,6 @@ db_train.delete!
149
147
  db_train.create!
150
148
 
151
149
 
152
- db_train.save_doc(
153
- {'_id' => "_design/polynomial_fit",
154
- views: { test_cases: { map:
155
- "function(doc) { emit(doc._id, doc); }"}}})
156
-
157
150
  workstations =[
158
151
  GenerationStation.new(:maker),
159
152
  ScoringStation.new(:scoring_station),
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: answer-factory
3
3
  version: !ruby/object:Gem::Version
4
- hash: 65
4
+ hash: 71
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
9
  - 3
10
- - 5
11
- version: 0.1.3.5
10
+ - 6
11
+ version: 0.1.3.6
12
12
  platform: ruby
13
13
  authors:
14
14
  - Bill Tozier