Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/09/12 14:36:46 (12 years ago)
Author:
mkommend
Message:

#1081: Code clean up in time series prognosis model and problem data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/TimeSeriesPrognosis/TimeSeriesPrognosisProblemData.cs

    r7989 r8459  
    15421542    private static readonly string defaultTargetVariable;
    15431543
    1544     private static readonly TimeSeriesPrognosisProblemData emptyProblemData;
    1545     public static TimeSeriesPrognosisProblemData EmptyProblemData {
    1546       get { return emptyProblemData; }
    1547     }
    1548 
    15491544    static TimeSeriesPrognosisProblemData() {
    15501545      defaultDataset = new Dataset(new string[] { "x" }, mackey_glass_17);
     
    15521547      defaultAllowedInputVariables = new List<string>() { "x" };
    15531548      defaultTargetVariable = "x";
    1554 
    1555       var problemData = new TimeSeriesPrognosisProblemData();
    1556       problemData.Parameters.Clear();
    1557       problemData.Name = "Empty Time-Series Prognosis ProblemData";
    1558       problemData.Description = "This ProblemData acts as place holder before the correct problem data is loaded.";
    1559       problemData.isEmpty = true;
    1560 
    1561       problemData.Parameters.Add(new FixedValueParameter<Dataset>(DatasetParameterName, "", new Dataset()));
    1562       problemData.Parameters.Add(new FixedValueParameter<ReadOnlyCheckedItemList<StringValue>>(InputVariablesParameterName, ""));
    1563       problemData.Parameters.Add(new FixedValueParameter<IntRange>(TrainingPartitionParameterName, "", (IntRange)new IntRange(0, 0).AsReadOnly()));
    1564       problemData.Parameters.Add(new FixedValueParameter<IntRange>(TestPartitionParameterName, "", (IntRange)new IntRange(0, 0).AsReadOnly()));
    1565       problemData.Parameters.Add(new ConstrainedValueParameter<StringValue>(TargetVariableParameterName, new ItemSet<StringValue>()));
    1566       emptyProblemData = problemData;
    15671549    }
    15681550    #endregion
     
    15871569    }
    15881570    public override IDeepCloneable Clone(Cloner cloner) {
    1589       if (this == emptyProblemData) return emptyProblemData;
    15901571      return new TimeSeriesPrognosisProblemData(this, cloner);
    15911572    }
Note: See TracChangeset for help on using the changeset viewer.