Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9995 for trunk/sources


Ignore:
Timestamp:
09/19/13 18:04:26 (11 years ago)
Author:
gkronber
Message:

#1508 enabled target variable as input variable for the trading plugin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Trading/3.4/CsvProblemInstanceProvider.cs

    r9989 r9995  
    7272      if (trainingIndizes.Count() >= 2) {
    7373        foreach (var variableName in dataset.DoubleVariables) {
    74           if (dataset.GetDoubleValues(variableName, trainingIndizes).Range() > 0 &&
    75             variableName != targetVar)
     74          if (dataset.GetDoubleValues(variableName, trainingIndizes).Range() > 0)
    7675            allowedInputVars.Add(variableName);
    7776        }
    7877      } else {
    79         allowedInputVars.AddRange(dataset.DoubleVariables.Where(x => !x.Equals(targetVar)));
     78        allowedInputVars.AddRange(dataset.DoubleVariables);
    8079      }
    8180
Note: See TracChangeset for help on using the changeset viewer.