Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/18/09 12:45:47 (15 years ago)
Author:
gkronber
Message:

Improved stability of hive backend for CEDMA. #642 (Hive backend for CEDMA)

File:
1 edited

Legend:

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

    r2053 r2057  
    6969    protected abstract void StartJobs();
    7070
     71    protected void SetResults(IScope src, IScope target) {
     72      foreach (IVariable v in src.Variables) {
     73        target.AddVariable(v);
     74      }
     75      foreach (IScope subScope in src.SubScopes) {
     76        target.AddSubScope(subScope);
     77      }
     78      foreach (KeyValuePair<string, string> alias in src.Aliases) {
     79        target.AddAlias(alias.Key, alias.Value);
     80      }
     81    }
     82
    7183    protected void StoreResults(IAlgorithm finishedAlgorithm) {
    7284      Entity modelEntity = new Entity(Ontology.CedmaNameSpace + Guid.NewGuid());
     85      IModel model = finishedAlgorithm.Model;
    7386      List<Statement> statements = new List<Statement>();
    7487      statements.Add(new Statement(modelEntity, Ontology.InstanceOf, Ontology.TypeModel));
    75       statements.Add(new Statement(modelEntity, Ontology.TargetVariable, new Literal(finishedAlgorithm.Model.TargetVariable)));
     88      statements.Add(new Statement(modelEntity, Ontology.TargetVariable, new Literal(model.TargetVariable)));
    7689      statements.Add(new Statement(modelEntity, Ontology.Name, new Literal(finishedAlgorithm.Description)));
    7790     
    78       IModel model = finishedAlgorithm.Model;
    7991      statements.Add(new Statement(modelEntity, Ontology.TrainingMeanSquaredError, new Literal(model.TrainingMeanSquaredError)));
    8092      statements.Add(new Statement(modelEntity, Ontology.ValidationMeanSquaredError, new Literal(model.ValidationMeanSquaredError)));
Note: See TracChangeset for help on using the changeset viewer.