diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-05-06 19:29:55 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-05-06 19:29:55 +0200 |
commit | 0f1e80c3dcbbbc0d8b2f916de68d6d0c86b53ec2 (patch) | |
tree | fa9a731ace8584c728c3ea7b5a623738db6228c7 /lib/feature.rb | |
parent | b893941bc58260e2dd88d6d78433b65ba1dbe45b (diff) |
read acceptValue from ambit datasets, set acceptValue when create dataset from csv/excel
Diffstat (limited to 'lib/feature.rb')
-rw-r--r-- | lib/feature.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/feature.rb b/lib/feature.rb index f6e2dfd..b631e46 100644 --- a/lib/feature.rb +++ b/lib/feature.rb @@ -16,19 +16,6 @@ module OpenTox feature end - # provides domain (possible target values) of classification feature - # @return [Array] list with possible target values - def domain - if metadata[OT.acceptValue] - raise "accept value found, remove hack and implement correctly" - else - if @uri=~/feature\/26221/ || @uri=~/feature\/221726/ - return ["mutagen" , "nonmutagen"] - end - return [true, false] - end - end - # provides feature type, possible types are "regression" or "classification" # @return [String] feature type, unknown if OT.isA property is unknown/ not set def feature_type |