Changeset 17054 for stable/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/TimeSeriesPrognosis
- Timestamp:
- 07/04/19 13:00:24 (5 years ago)
- Location:
- stable
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk merged: 16241,16243-16244,16763
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis
- Property svn:mergeinfo changed
/trunk/HeuristicLab.Problems.DataAnalysis merged: 16241,16243-16244,16763
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis/3.4
- Property svn:mergeinfo changed
/trunk/HeuristicLab.Problems.DataAnalysis/3.4 merged: 16241,16243-16244,16763
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/TimeSeriesPrognosis/TimeSeriesPrognosisProblemData.cs
r15584 r17054 1620 1620 OnChanged(); 1621 1621 } 1622 1623 protected override bool IsProblemDataCompatible(IDataAnalysisProblemData problemData, out string errorMessage) {1624 if (problemData == null) throw new ArgumentNullException("problemData", "The provided problemData is null.");1625 ITimeSeriesPrognosisProblemData timeseriesProblemData = problemData as ITimeSeriesPrognosisProblemData;1626 if (timeseriesProblemData == null)1627 throw new ArgumentException("The problem data is not a time-series problem data. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData");1628 1629 var returnValue = base.IsProblemDataCompatible(problemData, out errorMessage);1630 //check targetVariable1631 if (problemData.InputVariables.All(var => var.Value != TargetVariable)) {1632 errorMessage = string.Format("The target variable {0} is not present in the new problem data.", TargetVariable)1633 + Environment.NewLine + errorMessage;1634 return false;1635 }1636 return returnValue;1637 }1638 1639 public override void AdjustProblemDataProperties(IDataAnalysisProblemData problemData) {1640 TimeSeriesPrognosisProblemData timeSeriesProblemData = problemData as TimeSeriesPrognosisProblemData;1641 if (timeSeriesProblemData == null)1642 throw new ArgumentException("The problem data is not a timeseries problem data. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData");1643 1644 var trainingDataStart = TrainingIndices.First();1645 1646 base.AdjustProblemDataProperties(problemData);1647 1648 TestPartition.Start = trainingDataStart;1649 1650 TrainingHorizon = timeSeriesProblemData.TrainingHorizon;1651 TestHorizon = timeSeriesProblemData.TestHorizon;1652 }1653 1654 1622 } 1655 1623 }
Note: See TracChangeset
for help on using the changeset viewer.