nimbus 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -79,7 +79,7 @@ module Nimbus
79
79
  individual_prediction << Nimbus::Tree.traverse(t, individual.snp_list)
80
80
  end
81
81
  class_sizes = Nimbus::LossFunctions.class_sizes_in_list(individual_prediction, @options.tree[:classes]).map{|p| (p/individual_prediction.size.to_f).round(3)}
82
- @predictions[individual.id] = Hash[@options.tree[:classes].zip class_sizes].to_s
82
+ @predictions[individual.id] = Hash[@options.tree[:classes].zip class_sizes].map{|k,v| "'#{k}': #{v}"}.join(' , ')
83
83
  }
84
84
  end
85
85
 
@@ -1,3 +1,3 @@
1
1
  module Nimbus
2
- VERSION = "2.2.0"
2
+ VERSION = "2.2.1"
3
3
  end
@@ -117,7 +117,7 @@ describe Nimbus::Forest do
117
117
  individual_prediction << Nimbus::Tree.traverse(t, individual.snp_list)
118
118
  end
119
119
  class_sizes = Nimbus::LossFunctions.class_sizes_in_list(individual_prediction, @config.tree[:classes]).map{|p| (p/individual_prediction.size.to_f).round(3)}
120
- expected_predictions[individual.id] = Hash[@config.tree[:classes].zip class_sizes].to_s
120
+ expected_predictions[individual.id] = Hash[@config.tree[:classes].zip class_sizes].map{|k,v| "'#{k}': #{v}"}.join(' , ')
121
121
  }
122
122
 
123
123
  @forest.traverse
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nimbus
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-07-29 00:00:00.000000000 Z
13
+ date: 2012-07-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
17
- requirement: &2153196200 !ruby/object:Gem::Requirement
17
+ requirement: &2161078680 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,7 +22,7 @@ dependencies:
22
22
  version: 2.11.0
23
23
  type: :development
24
24
  prerelease: false
25
- version_requirements: *2153196200
25
+ version_requirements: *2161078680
26
26
  description: Nimbus is a Ruby gem to implement Random Forest in a genomic selection
27
27
  context.
28
28
  email: