diff options
author | mguetlein <martin.guetlein@gmail.com> | 2012-07-10 17:22:16 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2012-07-10 17:22:16 +0200 |
commit | 066b3c889b3cd0ebf78eafbadfe234c9d5fdb964 (patch) | |
tree | 6f2feaa6747380d4b21c9edb85ccb0080413a128 | |
parent | d1f3a0ffb95e0b3b3bd6fa9ff0de7f4f0779256f (diff) |
do not store predictions in validations, this will make redis grow too much
-rwxr-xr-x | lib/validation_db.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/validation_db.rb b/lib/validation_db.rb index 29f2903..2d9e7e9 100755 --- a/lib/validation_db.rb +++ b/lib/validation_db.rb @@ -75,7 +75,7 @@ module Validation attribute :classification_statistics_yaml attribute :regression_statistics_yaml attribute :finished - attribute :prediction_data_yaml + #attribute :prediction_data_yaml attribute :median_confidence index :model_uri @@ -88,7 +88,7 @@ module Validation index :test_dataset_uri index :finished - attr_accessor :subjectid + attr_accessor :subjectid, :prediction_data def self.create(params={}) params[:date] = Time.new @@ -111,13 +111,13 @@ module Validation self.regression_statistics_yaml = rs.to_yaml end - def prediction_data - YAML.load(self.prediction_data_yaml) if self.prediction_data_yaml - end + #def prediction_data + # YAML.load(self.prediction_data_yaml) if self.prediction_data_yaml + #end - def prediction_data=(pd) - self.prediction_data_yaml = pd.to_yaml - end + #def prediction_data=(pd) + # self.prediction_data_yaml = pd.to_yaml + #end def save super |