- Timestamp:
- 09/16/09 13:13:52 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.CEDMA.Server/3.3/SimpleDispatcher.cs
r2290 r2363 193 193 allowedFeatures.Add(new IntData(targetVariable)); 194 194 } 195 } else if (problem.LearningTask == LearningTask.Classification) { 196 ItemList<DoubleData> classValues = algo.ProblemInjector.GetVariable("TargetClassValues").GetValue<ItemList<DoubleData>>(); 197 foreach (double classValue in GetDifferentClassValues(problem.Dataset, targetVariable)) classValues.Add(new DoubleData(classValue)); 198 } 199 } 200 201 private IEnumerable<double> GetDifferentClassValues(HeuristicLab.DataAnalysis.Dataset dataset, int targetVariable) { 202 return Enumerable.Range(0, dataset.Rows).Select(x => dataset.GetValue(x, targetVariable)).Distinct(); 203 } 195 } 196 } 197 204 198 205 199 private void AddDispatchedRun(string targetVariable, IEnumerable<string> inputVariables, string algorithm) {
Note: See TracChangeset
for help on using the changeset viewer.