diff options
author | mr <mr@mrautenberg.de> | 2011-05-25 13:37:06 +0200 |
---|---|---|
committer | mr <mr@mrautenberg.de> | 2011-05-25 13:37:06 +0200 |
commit | d5bf9fd2b7f4401c36d00ab6afb1a003fdb07d2f (patch) | |
tree | db88d9b1a7f01f7a24a597a05b293d9307dc1d3f /lib/dataset.rb | |
parent | 796ef9b86fcdcf5f9520b958c09cb37ae1374bf4 (diff) | |
parent | 52e73a3da8e99da9a0a973b6ef9934297bc6511e (diff) |
Merge branch 'development' of github.com:opentox/opentox-ruby into development
Diffstat (limited to 'lib/dataset.rb')
-rw-r--r-- | lib/dataset.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/dataset.rb b/lib/dataset.rb index 4005c1c..4dc4296 100644 --- a/lib/dataset.rb +++ b/lib/dataset.rb @@ -179,7 +179,6 @@ module OpenTox end end -=begin # Detect feature type(s) in the dataset # @return [String] `classification", "regression", "mixed" or unknown` def feature_type(subjectid=nil) @@ -193,6 +192,7 @@ module OpenTox "unknown" end end +=begin =end # Get Spreadsheet representation @@ -369,12 +369,11 @@ module OpenTox end def value(compound) - @data_entries[compound.uri].collect{|f,v| v.first if f.match(/prediction/)}.compact.first + @data_entries[compound.uri].collect{|f,v| v.first if f.match(/value/)}.compact.first end def confidence(compound) - feature_uri = @data_entries[compound.uri].collect{|f,v| f if f.match(/prediction/)}.compact.first - @features[feature_uri][OT.confidence] + @data_entries[compound.uri].collect{|f,v| v.first if f.match(/confidence/)}.compact.first end def descriptors(compound) |