Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/04/09 15:18:29 (15 years ago)
Author:
gkronber
Message:

Refactoring: changed CEDMA backend to use a single data set per RDF results database. #656 (CEDMA server should handle only one data set (problem) at a time)

Location:
trunk/sources/HeuristicLab.CEDMA.Server/3.3
Files:
2 edited

Legend:

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

    r1922 r2000  
    6565      string targetVariableName = dataSet.Problem.GetVariableName(targetVariable);
    6666
    67 
    6867      if (selectedAlgorithm != null) {
    6968        SetProblemParameters(selectedAlgorithm, dataSet.Problem, targetVariable);
     
    7776
    7877    private void SetProblemParameters(IAlgorithm algo, Problem problem, int targetVariable) {
    79       algo.Dataset = problem.DataSet;
     78      algo.Dataset = problem.Dataset;
    8079      algo.TargetVariable = targetVariable;
    8180      algo.ProblemInjector.GetVariable("TrainingSamplesStart").GetValue<IntData>().Data = problem.TrainingSamplesStart;
     
    9493      } else if (problem.LearningTask == LearningTask.Classification) {
    9594        ItemList<DoubleData> classValues = algo.ProblemInjector.GetVariable("TargetClassValues").GetValue<ItemList<DoubleData>>();
    96         foreach (double classValue in GetDifferentClassValues(problem.DataSet, targetVariable)) classValues.Add(new DoubleData(classValue));
     95        foreach (double classValue in GetDifferentClassValues(problem.Dataset, targetVariable)) classValues.Add(new DoubleData(classValue));
    9796      }
    9897    }
  • trunk/sources/HeuristicLab.CEDMA.Server/3.3/ExecuterBase.cs

    r1922 r2000  
    7171    protected void StoreResults(IAlgorithm finishedAlgorithm) {
    7272      Entity modelEntity = new Entity(Ontology.CedmaNameSpace + Guid.NewGuid());
    73       // TODO (gkronber 27052009)
    7473      // store.Add(new Statement(finishedAlgorithm.DataSetEntity, Ontology.PredicateHasModel, modelEntity));
    7574      StoreModelAttribute(modelEntity, Ontology.TargetVariable, finishedAlgorithm.Model.TargetVariable);
Note: See TracChangeset for help on using the changeset viewer.