From 066b3c889b3cd0ebf78eafbadfe234c9d5fdb964 Mon Sep 17 00:00:00 2001 From: mguetlein Date: Tue, 10 Jul 2012 17:22:16 +0200 Subject: do not store predictions in validations, this will make redis grow too much --- lib/validation_db.rb | 16 ++++++++-------- 1 file 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 -- cgit v1.2.3