- Timestamp:
- 06/18/09 12:45:47 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.CEDMA.Server/3.3/ExecuterBase.cs
r2053 r2057 69 69 protected abstract void StartJobs(); 70 70 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 71 83 protected void StoreResults(IAlgorithm finishedAlgorithm) { 72 84 Entity modelEntity = new Entity(Ontology.CedmaNameSpace + Guid.NewGuid()); 85 IModel model = finishedAlgorithm.Model; 73 86 List<Statement> statements = new List<Statement>(); 74 87 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))); 76 89 statements.Add(new Statement(modelEntity, Ontology.Name, new Literal(finishedAlgorithm.Description))); 77 90 78 IModel model = finishedAlgorithm.Model;79 91 statements.Add(new Statement(modelEntity, Ontology.TrainingMeanSquaredError, new Literal(model.TrainingMeanSquaredError))); 80 92 statements.Add(new Statement(modelEntity, Ontology.ValidationMeanSquaredError, new Literal(model.ValidationMeanSquaredError)));
Note: See TracChangeset
for help on using the changeset viewer.