nimbus 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/nimbus/forest.rb +1 -1
- data/lib/nimbus/version.rb +1 -1
- data/spec/forest_spec.rb +1 -1
- metadata +4 -4
data/lib/nimbus/forest.rb
CHANGED
@@ -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].
|
82
|
+
@predictions[individual.id] = Hash[@options.tree[:classes].zip class_sizes].map{|k,v| "'#{k}': #{v}"}.join(' , ')
|
83
83
|
}
|
84
84
|
end
|
85
85
|
|
data/lib/nimbus/version.rb
CHANGED
data/spec/forest_spec.rb
CHANGED
@@ -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].
|
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.
|
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-
|
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: &
|
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: *
|
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:
|