diff options
author | helma@in-silico.ch <helma@in-silico.ch> | 2018-10-29 20:34:39 +0100 |
---|---|---|
committer | helma@in-silico.ch <helma@in-silico.ch> | 2018-10-29 20:34:39 +0100 |
commit | d9c9d78e49d886ea91386adbbd2b523347df226e (patch) | |
tree | 6f728c82ca01b6a19d8e4aa1905e26bea9253f33 /lib/feature.rb | |
parent | 5e9a08c0b534fa96179fb5c81a9b4193e7b0aad8 (diff) |
dataset predictions fixed
Diffstat (limited to 'lib/feature.rb')
-rw-r--r-- | lib/feature.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/feature.rb b/lib/feature.rb index be07e7a..c18b0b8 100644 --- a/lib/feature.rb +++ b/lib/feature.rb @@ -54,18 +54,30 @@ module OpenTox class NominalLazarPrediction < NominalFeature field :model_id, type: BSON::ObjectId field :training_feature_id, type: BSON::ObjectId + def name + "#{self[:name]} Prediction" + end end class LazarPredictionProbability < NominalLazarPrediction + def name + "probability(#{self[:name]})" + end end # Numeric lazar prediction class NumericLazarPrediction < NumericFeature field :model_id, type: BSON::ObjectId field :training_feature_id, type: BSON::ObjectId + def name + "#{name} Prediction" + end end class LazarPredictionInterval < NumericLazarPrediction + def name + "prediction_interval_#{self[:name]}" + end end class NominalSubstanceProperty < NominalFeature |