Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/16/09 13:13:52 (15 years ago)
Author:
gkronber
Message:

Fixed problems with classification algorithms. #746 (CEDMA server is not compatible with new data-modeling algorithms)

File:
1 edited

Legend:

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

    r2290 r2363  
    193193          allowedFeatures.Add(new IntData(targetVariable));
    194194        }
    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
    204198
    205199    private void AddDispatchedRun(string targetVariable, IEnumerable<string> inputVariables, string algorithm) {
Note: See TracChangeset for help on using the changeset viewer.