summaryrefslogtreecommitdiff
path: root/lib/dataset.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2011-05-23 14:03:02 +0000
committerChristoph Helma <helma@in-silico.ch>2011-05-23 14:03:02 +0000
commit0b936c71d8a1d5effa6c29d5ee9c227fff18a070 (patch)
tree8bb3d7e44ff25cd4bb33da8636f663ed3240aa1b /lib/dataset.rb
parent4f7bd464f0676c2cebdcd8a46c1ac79c4ec86cde (diff)
owl-dl fixed for model and prediction datasets
Diffstat (limited to 'lib/dataset.rb')
-rw-r--r--lib/dataset.rb7
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)