Changeset 2238
- Timestamp:
- 08/05/09 11:41:32 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 15 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.CEDMA.Server/3.3/ExecuterBase.cs
r2223 r2238 45 45 protected IDispatcher Dispatcher { 46 46 get { return dispatcher; } 47 } 47 } 48 48 private IModelingDatabase databaseService; 49 49 … … 84 84 protected void StoreResults(HeuristicLab.Modeling.IAlgorithm finishedAlgorithm) { 85 85 databaseService.Persist(finishedAlgorithm); 86 //Entity modelEntity = new Entity(Ontology.CedmaNameSpace + Guid.NewGuid());87 //IModel model = finishedAlgorithm.Model;88 //List<Statement> statements = new List<Statement>();89 //statements.Add(new Statement(modelEntity, Ontology.InstanceOf, Ontology.TypeModel));90 //statements.Add(new Statement(modelEntity, Ontology.TargetVariable, new Literal(model.TargetVariable)));91 //statements.Add(new Statement(modelEntity, Ontology.Name, new Literal(finishedAlgorithm.Name)));92 93 //statements.Add(new Statement(modelEntity, Ontology.TrainingMeanSquaredError, new Literal(model.TrainingMeanSquaredError)));94 //statements.Add(new Statement(modelEntity, Ontology.ValidationMeanSquaredError, new Literal(model.ValidationMeanSquaredError)));95 //statements.Add(new Statement(modelEntity, Ontology.TestMeanSquaredError, new Literal(model.TestMeanSquaredError)));96 //statements.Add(new Statement(modelEntity, Ontology.TrainingCoefficientOfDetermination, new Literal(model.TrainingCoefficientOfDetermination)));97 //statements.Add(new Statement(modelEntity, Ontology.ValidationCoefficientOfDetermination, new Literal(model.ValidationCoefficientOfDetermination)));98 //statements.Add(new Statement(modelEntity, Ontology.TestCoefficientOfDetermination, new Literal(model.TestCoefficientOfDetermination)));99 //statements.Add(new Statement(modelEntity, Ontology.TrainingVarianceAccountedFor, new Literal(model.TrainingVarianceAccountedFor)));100 //statements.Add(new Statement(modelEntity, Ontology.ValidationVarianceAccountedFor, new Literal(model.ValidationVarianceAccountedFor)));101 //statements.Add(new Statement(modelEntity, Ontology.TestVarianceAccountedFor, new Literal(model.TestVarianceAccountedFor)));102 //statements.Add(new Statement(modelEntity, Ontology.TrainingMeanAbsolutePercentageError, new Literal(model.TrainingMeanAbsolutePercentageError)));103 //statements.Add(new Statement(modelEntity, Ontology.ValidationMeanAbsolutePercentageError, new Literal(model.ValidationMeanAbsolutePercentageError)));104 //statements.Add(new Statement(modelEntity, Ontology.TestMeanAbsolutePercentageError, new Literal(model.TestMeanAbsolutePercentageError)));105 //statements.Add(new Statement(modelEntity, Ontology.TrainingMeanAbsolutePercentageOfRangeError, new Literal(model.TrainingMeanAbsolutePercentageOfRangeError)));106 //statements.Add(new Statement(modelEntity, Ontology.ValidationMeanAbsolutePercentageOfRangeError, new Literal(model.ValidationMeanAbsolutePercentageOfRangeError)));107 //statements.Add(new Statement(modelEntity, Ontology.TestMeanAbsolutePercentageOfRangeError, new Literal(model.TestMeanAbsolutePercentageOfRangeError)));108 109 //for (int i = 0; i < finishedAlgorithm.Dataset.Columns; i++) {110 // try {111 // string variableName = finishedAlgorithm.Dataset.GetVariableName(i);112 // double qualImpact = model.GetVariableQualityImpact(variableName);113 // double evalImpact = model.GetVariableEvaluationImpact(variableName);114 115 // Entity inputVariableEntity = new Entity(Ontology.CedmaNameSpace + Guid.NewGuid());116 // statements.Add(new Statement(inputVariableEntity, Ontology.InstanceOf, Ontology.TypeVariableImpact));117 // statements.Add(new Statement(modelEntity, Ontology.HasInputVariable, inputVariableEntity));118 // statements.Add(new Statement(inputVariableEntity, Ontology.EvaluationImpact, new Literal(evalImpact)));119 // statements.Add(new Statement(inputVariableEntity, Ontology.QualityImpact, new Literal(qualImpact)));120 // statements.Add(new Statement(inputVariableEntity, Ontology.Name, new Literal(variableName)));121 // }122 // catch (ArgumentException) {123 // // ignore124 // }125 //}126 127 //byte[] serializedModel = PersistenceManager.SaveToGZip(model.Data);128 //statements.Add(new Statement(modelEntity, Ontology.SerializedData, new Literal(Convert.ToBase64String(serializedModel))));129 //store.AddRange(statements);130 86 } 131 87 -
trunk/sources/HeuristicLab.CEDMA.Server/3.3/Problem.cs
r2223 r2238 86 86 } 87 87 88 //private List<int> allowedInputVariables;89 //public List<int> AllowedInputVariables {90 // get { return allowedInputVariables; }91 //}92 93 //private List<int> allowedTargetVariables;94 //public List<int> AllowedTargetVariables {95 // get { return allowedTargetVariables; }96 //}97 98 88 private bool autoRegressive; 99 89 public bool AutoRegressive { … … 122 112 public Problem() 123 113 : base() { 124 //allowedInputVariables = new List<int>();125 //allowedTargetVariables = new List<int>();126 114 Dataset = new HeuristicLab.DataAnalysis.Dataset(); 127 115 } -
trunk/sources/HeuristicLab.CEDMA.Server/3.3/ProblemView.cs
r2223 r2238 102 102 problem.TestSamplesStart = parser.TestSamplesStart; 103 103 problem.TestSamplesEnd = parser.TestSamplesEnd; 104 //problem.AllowedTargetVariables.Add(parser.TargetVariable);105 104 problem.FireChanged(); 106 //List<int> nonInputVariables = parser.NonInputVariables;107 //for (int i = 0; i < dataset.Columns; i++) {108 // if (!nonInputVariables.Contains(i)) problem.AllowedInputVariables.Add(i);109 //}110 105 Refresh(); 111 106 } 112 107 } 113 108 } 114 115 //private void targetsListBox_ItemCheck(object sender, ItemCheckEventArgs e) {116 // if (e.NewValue == CheckState.Checked && !problem.AllowedTargetVariables.Contains(e.Index))117 // problem.AllowedTargetVariables.Add(e.Index);118 // else if (e.NewValue == CheckState.Unchecked && problem.AllowedTargetVariables.Contains(e.Index))119 // problem.AllowedTargetVariables.Remove(e.Index);120 //}121 122 //private void inputsListBox_ItemCheck(object sender, ItemCheckEventArgs e) {123 // if (e.NewValue == CheckState.Checked && !problem.AllowedInputVariables.Contains(e.Index))124 // problem.AllowedInputVariables.Add(e.Index);125 // else if (e.NewValue == CheckState.Unchecked && problem.AllowedInputVariables.Contains(e.Index))126 // problem.AllowedInputVariables.Remove(e.Index);127 //}128 109 129 110 private void autoregressiveCheckBox_CheckedChanged(object sender, EventArgs e) {
Note: See TracChangeset
for help on using the changeset viewer.