Changeset 8459 for branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/TimeSeriesPrognosis/TimeSeriesPrognosisProblemData.cs
- Timestamp:
- 08/09/12 14:36:46 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/TimeSeriesPrognosis/TimeSeriesPrognosisProblemData.cs
r7989 r8459 1542 1542 private static readonly string defaultTargetVariable; 1543 1543 1544 private static readonly TimeSeriesPrognosisProblemData emptyProblemData;1545 public static TimeSeriesPrognosisProblemData EmptyProblemData {1546 get { return emptyProblemData; }1547 }1548 1549 1544 static TimeSeriesPrognosisProblemData() { 1550 1545 defaultDataset = new Dataset(new string[] { "x" }, mackey_glass_17); … … 1552 1547 defaultAllowedInputVariables = new List<string>() { "x" }; 1553 1548 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;1567 1549 } 1568 1550 #endregion … … 1587 1569 } 1588 1570 public override IDeepCloneable Clone(Cloner cloner) { 1589 if (this == emptyProblemData) return emptyProblemData;1590 1571 return new TimeSeriesPrognosisProblemData(this, cloner); 1591 1572 }
Note: See TracChangeset
for help on using the changeset viewer.