Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/24/13 12:51:02 (11 years ago)
Author:
gkronber
Message:

#1508 refactoring: removed unused classes, unified calculation of profits and signals, implemented profit-evaluator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.DataAnalysis.Trading/HeuristicLab.Problems.DataAnalysis.Trading/3.4/TradingSolution.cs

    r9743 r9744  
    7878      Add(new Result(TrainingProfitResultName, "Profit of the model on the training partition", new DoubleValue()));
    7979      Add(new Result(TestProfitResultName, "Profit of the model on the test partition", new DoubleValue()));
    80 
    81       RecalculateResults();
    8280    }
    8381
     
    9492
    9593    protected override void RecalculateResults() {
     94      CalculateTradingResults();
     95    }
     96
     97    protected void CalculateTradingResults() {
    9698      double[] trainingSignals = TrainingSignals.ToArray(); // cache values
    9799      IEnumerable<double> trainingReturns = ProblemData.Dataset.GetDoubleValues(ProblemData.PriceVariable, ProblemData.TrainingIndices);
Note: See TracChangeset for help on using the changeset viewer.