Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/21/09 20:23:47 (15 years ago)
Author:
gkronber
Message:

Refactored CEDMA dispatcher and CEDMA server view to allow different modeling scenarios for each variable. #754

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.SupportVectorMachines/3.2/SupportVectorRegression.cs

    r2363 r2375  
    7777        return CreateSVMModel(bestModelScope);
    7878      }
     79    }
     80    public IEnumerable<int> AllowedVariables {
     81      get {
     82        ItemList<IntData> allowedVariables = ProblemInjector.GetVariableValue<ItemList<IntData>>("AllowedFeatures", null, false);
     83        return allowedVariables.Select(x => x.Data);
     84      }
     85      set {
     86        ItemList<IntData> allowedVariables = ProblemInjector.GetVariableValue<ItemList<IntData>>("AllowedFeatures", null, false);
     87        foreach (int x in value) allowedVariables.Add(new IntData(x));
     88      }
     89    }
     90
     91    public int TrainingSamplesStart {
     92      get { return ProblemInjector.GetVariableValue<IntData>("TrainingSamplesStart", null, false).Data; }
     93      set { ProblemInjector.GetVariableValue<IntData>("TrainingSamplesStart", null, false).Data = value; }
     94    }
     95
     96    public int TrainingSamplesEnd {
     97      get { return ProblemInjector.GetVariableValue<IntData>("TrainingSamplesEnd", null, false).Data; }
     98      set { ProblemInjector.GetVariableValue<IntData>("TrainingSamplesEnd", null, false).Data = value; }
     99    }
     100
     101    public int ValidationSamplesStart {
     102      get { return ProblemInjector.GetVariableValue<IntData>("ValidationSamplesStart", null, false).Data; }
     103      set { ProblemInjector.GetVariableValue<IntData>("ValidationSamplesStart", null, false).Data = value; }
     104    }
     105
     106    public int ValidationSamplesEnd {
     107      get { return ProblemInjector.GetVariableValue<IntData>("ValidationSamplesEnd", null, false).Data; }
     108      set { ProblemInjector.GetVariableValue<IntData>("ValidationSamplesEnd", null, false).Data = value; }
     109    }
     110
     111    public int TestSamplesStart {
     112      get { return ProblemInjector.GetVariableValue<IntData>("TestSamplesStart", null, false).Data; }
     113      set { ProblemInjector.GetVariableValue<IntData>("TestSamplesStart", null, false).Data = value; }
     114    }
     115
     116    public int TestSamplesEnd {
     117      get { return ProblemInjector.GetVariableValue<IntData>("TestSamplesEnd", null, false).Data; }
     118      set { ProblemInjector.GetVariableValue<IntData>("TestSamplesEnd", null, false).Data = value; }
    79119    }
    80120
Note: See TracChangeset for help on using the changeset viewer.