Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/02/09 13:17:14 (15 years ago)
Author:
gkronber
Message:
  • Removed "AutoRegressive" parameter for GP completely. User is responsible to set allowed features correctly (including the target variable for auto regression)
  • Setting allowed features correctly in the CEDMA dispatcher (this fixes the problem of incorrect input variables in SVM)

#683 (nu-SVR engine doesn't filter allowed features to remove the target variable)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.CEDMA.Server/3.3/SimpleDispatcher.cs

    r2119 r2130  
    167167      algo.ProblemInjector.GetVariable("TestSamplesEnd").GetValue<IntData>().Data = problem.TestSamplesEnd;
    168168      ItemList<IntData> allowedFeatures = algo.ProblemInjector.GetVariable("AllowedFeatures").GetValue<ItemList<IntData>>();
    169       foreach (int inputVariable in inputVariables) allowedFeatures.Add(new IntData(inputVariable));
     169      foreach (int inputVariable in inputVariables) {
     170        if (inputVariable != targetVariable) {
     171          allowedFeatures.Add(new IntData(inputVariable));
     172        }
     173      }
    170174
    171175      if (problem.LearningTask == LearningTask.TimeSeries) {
     
    173177        algo.ProblemInjector.GetVariable("MinTimeOffset").GetValue<IntData>().Data = problem.MinTimeOffset;
    174178        algo.ProblemInjector.GetVariable("MaxTimeOffset").GetValue<IntData>().Data = problem.MaxTimeOffset;
     179        if (problem.AutoRegressive) {
     180          allowedFeatures.Add(new IntData(targetVariable));
     181        }
    175182      } else if (problem.LearningTask == LearningTask.Classification) {
    176183        ItemList<DoubleData> classValues = algo.ProblemInjector.GetVariable("TargetClassValues").GetValue<ItemList<DoubleData>>();
Note: See TracChangeset for help on using the changeset viewer.