Changeset 9744 for branches/HeuristicLab.Problems.DataAnalysis.Trading/HeuristicLab.Problems.DataAnalysis.Trading/3.4/TradingSolution.cs
- Timestamp:
- 07/24/13 12:51:02 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.DataAnalysis.Trading/HeuristicLab.Problems.DataAnalysis.Trading/3.4/TradingSolution.cs
r9743 r9744 78 78 Add(new Result(TrainingProfitResultName, "Profit of the model on the training partition", new DoubleValue())); 79 79 Add(new Result(TestProfitResultName, "Profit of the model on the test partition", new DoubleValue())); 80 81 RecalculateResults();82 80 } 83 81 … … 94 92 95 93 protected override void RecalculateResults() { 94 CalculateTradingResults(); 95 } 96 97 protected void CalculateTradingResults() { 96 98 double[] trainingSignals = TrainingSignals.ToArray(); // cache values 97 99 IEnumerable<double> trainingReturns = ProblemData.Dataset.GetDoubleValues(ProblemData.PriceVariable, ProblemData.TrainingIndices);
Note: See TracChangeset
for help on using the changeset viewer.