Changeset 2130 for trunk/sources/HeuristicLab.CEDMA.Server
- Timestamp:
- 07/02/09 13:17:14 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.CEDMA.Server/3.3/SimpleDispatcher.cs
r2119 r2130 167 167 algo.ProblemInjector.GetVariable("TestSamplesEnd").GetValue<IntData>().Data = problem.TestSamplesEnd; 168 168 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 } 170 174 171 175 if (problem.LearningTask == LearningTask.TimeSeries) { … … 173 177 algo.ProblemInjector.GetVariable("MinTimeOffset").GetValue<IntData>().Data = problem.MinTimeOffset; 174 178 algo.ProblemInjector.GetVariable("MaxTimeOffset").GetValue<IntData>().Data = problem.MaxTimeOffset; 179 if (problem.AutoRegressive) { 180 allowedFeatures.Add(new IntData(targetVariable)); 181 } 175 182 } else if (problem.LearningTask == LearningTask.Classification) { 176 183 ItemList<DoubleData> classValues = algo.ProblemInjector.GetVariable("TargetClassValues").GetValue<ItemList<DoubleData>>();
Note: See TracChangeset
for help on using the changeset viewer.