diff options
author | mguetlein <martin.guetlein@gmail.com> | 2013-02-04 14:07:28 +0100 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2013-02-04 14:07:28 +0100 |
commit | 54b833546cea44e03eca3183ad4a37b9f30651a1 (patch) | |
tree | fb240014170efdf4f19ee2d15c6217bc7b128ffc /lib/utils/shims/feature.rb | |
parent | 8a374b38d1e8b727f365b6ce5edf5424eb1a0c7d (diff) |
add validation, some debug messages, small adjustments
Diffstat (limited to 'lib/utils/shims/feature.rb')
-rw-r--r-- | lib/utils/shims/feature.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/shims/feature.rb b/lib/utils/shims/feature.rb index f49bb39..9afa5c2 100644 --- a/lib/utils/shims/feature.rb +++ b/lib/utils/shims/feature.rb @@ -66,7 +66,7 @@ module OpenTox bad_request_error "rdf type of feature '#{@uri}' not set" unless self[RDF.type] if self[RDF.type].include?(OT.NominalFeature) "classification" - elsif [RDF.type].to_a.flatten.include?(OT.NumericFeature) + elsif self[RDF.type].include?(OT.NumericFeature) "regression" else "unknown" |