summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2011-04-07 09:55:58 +0200
committermr <mr@mrautenberg.de>2011-04-07 09:55:58 +0200
commita68a4564c29d915cc5e97d8563372131ada882ce (patch)
tree6ec1f6f303a802a9f0e705aba73872dc9fa82052
parenta2ce8bd5b8b5c8f9deb93d33d31347c5aa200d5b (diff)
remove subjectid for method OpenTox::Feature.feature_type
-rw-r--r--lazar.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lazar.rb b/lazar.rb
index a45886c..fa65b84 100644
--- a/lazar.rb
+++ b/lazar.rb
@@ -78,7 +78,7 @@ post '/lazar/?' do
# sorted features for index lookups
- lazar.features = training_features.features.sort if prediction_feature.feature_type(@subjectid) == "regression" and lazar.feature_calculation_algorithm != "Substructure.match"
+ lazar.features = training_features.features.sort if prediction_feature.feature_type == "regression" and lazar.feature_calculation_algorithm != "Substructure.match"
training_features.data_entries.each do |compound,entry|
lazar.fingerprints[compound] = [] unless lazar.fingerprints[compound]
@@ -149,9 +149,9 @@ post '/lazar/?' do
lazar.metadata[OT.trainingDataset] = dataset_uri
lazar.metadata[OT.featureDataset] = feature_dataset_uri
- if prediction_feature.feature_type(@subjectid) == "classification"
+ if prediction_feature.feature_type == "classification"
lazar.metadata[RDF.type] = [OTA.ClassificationLazySingleTarget]
- elsif prediction_feature.feature_type(@subjectid) == "regression"
+ elsif prediction_feature.feature_type == "regression"
lazar.metadata[RDF.type] = [OTA.RegressionLazySingleTarget]
end