Changeset 8114 for branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis/3.4/SymbolicTimeSeriesPrognosisModel.cs
- Timestamp:
- 06/26/12 09:15:55 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis/3.4/SymbolicTimeSeriesPrognosisModel.cs
r8010 r8114 98 98 } 99 99 100 public static void Scale(SymbolicTimeSeriesPrognosisModel model, ITimeSeriesPrognosisProblemData problemData ) {100 public static void Scale(SymbolicTimeSeriesPrognosisModel model, ITimeSeriesPrognosisProblemData problemData, IEnumerable<int> rows) { 101 101 var dataset = problemData.Dataset; 102 102 var targetVariable = problemData.TargetVariable; 103 var rows = problemData.TrainingIndizes;104 var estimatedValuesEnumerator = model.Interpreter.GetSymbolicExpressionTreeValues(model.SymbolicExpressionTree, dataset, rows);105 var targetValues Enumerator= problemData.Dataset.GetDoubleValues(targetVariable, rows);103 var estimatedValues = model.Interpreter.GetSymbolicExpressionTreeValues(model.SymbolicExpressionTree, dataset, rows); 104 var boundedEstimatedValues = estimatedValues.LimitToRange(model.lowerEstimationLimit, model.upperEstimationLimit); 105 var targetValues = problemData.Dataset.GetDoubleValues(targetVariable, rows); 106 106 107 107 double alpha, beta; 108 108 OnlineCalculatorError error; 109 OnlineLinearScalingParameterCalculator.Calculate( estimatedValuesEnumerator, targetValuesEnumerator, out alpha, out beta, out error);109 OnlineLinearScalingParameterCalculator.Calculate(boundedEstimatedValues, targetValues, out alpha, out beta, out error); 110 110 if (error != OnlineCalculatorError.None) return; 111 111
Note: See TracChangeset
for help on using the changeset viewer.