diff options
author | Christoph Helma <helma@in-silico.ch> | 2019-06-20 22:01:50 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2019-06-20 22:01:50 +0200 |
commit | 455da06aa6459da0d25b286ca6cb866ff64c4c34 (patch) | |
tree | d0ed8fcf720a02742da781669251f379b8fd07f0 /lib/feature.rb | |
parent | 1b44e0cd76f2ead93b8b3fa0f970c85ef32a4b14 (diff) |
separate csv serialisations for batch predictions and training data, repeated measurements in mutagenicity dataset fixed, daphnia import fixed, CENTRAL_MONGO_IP removed
Diffstat (limited to 'lib/feature.rb')
-rw-r--r-- | lib/feature.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/feature.rb b/lib/feature.rb index 72c26d7..296a174 100644 --- a/lib/feature.rb +++ b/lib/feature.rb @@ -18,6 +18,9 @@ module OpenTox # Confidence class Confidence < Feature field :dataset_id, type: BSON::ObjectId + def name + "Confidence" + end end # Categorical variables @@ -66,13 +69,13 @@ module OpenTox field :model_id, type: BSON::ObjectId field :training_feature_id, type: BSON::ObjectId def name - "#{self[:name]} Prediction" + "Prediction: #{self[:name]}" end end class LazarPredictionProbability < NominalLazarPrediction def name - "probability(#{self[:name]})" + "Probability: #{self[:name]}" end end @@ -81,13 +84,13 @@ module OpenTox field :model_id, type: BSON::ObjectId field :training_feature_id, type: BSON::ObjectId def name - "#{self[:name]} Prediction" + "Prediction: #{self[:name]}" end end class LazarPredictionInterval < NumericLazarPrediction def name - "prediction_interval_#{self[:name]}" + "#{self[:name].capitalize} prediction interval" end end |