Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/21/10 10:16:49 (14 years ago)
Author:
gkronber
Message:

made DataAnalysisProblem and DataAnalysisProblemData and SymbolicTimeSeriesPrognosisSolution savable and added field for conditional evaluation to Symbolic/SymbolicTimeSeriesPrognosisSolution. #1142

Location:
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.MultiVariate.TimeSeriesPrognosis/3.3/Symbolic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.MultiVariate.TimeSeriesPrognosis/3.3/Symbolic/Analyzer/ValidationBestScaledSymbolicTimeSeriesPrognosisSolutionAnalyzer.cs

    r4401 r4457  
    295295        model.Description = "Best solution on validation partition found over the whole run.";
    296296
    297         var solution = new SymbolicTimeSeriesPrognosisSolution(ProblemData, model, PredictionHorizon.Value);
     297        var solution = new SymbolicTimeSeriesPrognosisSolution(ProblemData, model, PredictionHorizon.Value, conditionalVariableName);
    298298        solution.Name = BestSolutionParameterName;
    299299        solution.Description = "Best solution on validation partition found over the whole run.";
  • branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.MultiVariate.TimeSeriesPrognosis/3.3/Symbolic/SymbolicTimeSeriesPrognosisSolution.cs

    r4401 r4457  
    3535  [StorableClass]
    3636  [Item("SymbolicTimeSeriesPrognosisSolution", "Represents a solution for time series prognosis.")]
    37   public class SymbolicTimeSeriesPrognosisSolution : NamedItem, IMultiVariateDataAnalysisSolution {
     37  public class SymbolicTimeSeriesPrognosisSolution : NamedItem, IMultiVariateDataAnalysisSolution, IStorableContent {
    3838    [Storable]
    3939    private MultiVariateDataAnalysisProblemData problemData;
     
    4242    [Storable]
    4343    private int horizon;
     44    [Storable]
     45    private string conditionalEvaluationVariable;
     46
     47    public string FileName { get; set; }
    4448
    4549    [StorableConstructor]
     
    5054    }
    5155
    52     public SymbolicTimeSeriesPrognosisSolution(MultiVariateDataAnalysisProblemData problemData, SymbolicTimeSeriesPrognosisModel model, int horizon)
     56    public SymbolicTimeSeriesPrognosisSolution(MultiVariateDataAnalysisProblemData problemData, SymbolicTimeSeriesPrognosisModel model, int horizon, string conditionalEvaluationVariable)
    5357      : this() {
    5458      this.problemData = problemData;
    5559      this.model = model;
    5660      this.horizon = horizon;
     61      this.conditionalEvaluationVariable = conditionalEvaluationVariable;
    5762    }
    5863
     
    8287          model = value;
    8388          RaiseModelChanged();
     89        }
     90      }
     91    }
     92
     93    public string ConditionalEvaluationVariable {
     94      get { return conditionalEvaluationVariable; }
     95      set {
     96        if (conditionalEvaluationVariable != value) {
     97          conditionalEvaluationVariable = value;
     98          RaiseEstimatedValuesChanged();
    8499        }
    85100      }
     
    182197      clone.model = (SymbolicTimeSeriesPrognosisModel)cloner.Clone(model);
    183198      clone.horizon = horizon;
     199      clone.conditionalEvaluationVariable = conditionalEvaluationVariable;
    184200      return clone;
    185201    }
Note: See TracChangeset for help on using the changeset viewer.