Changeset 2275
- Timestamp:
- 08/11/09 15:43:58 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.CEDMA.Core/3.3/Results.cs
r2223 r2275 94 94 modelEntry.Set("PersistedData", database.GetModelData(model)); 95 95 modelEntry.Set("TargetVariable", model.TargetVariable.Name); 96 modelEntry.Set("Algorithm", model.Algorithm.Name); 96 97 Dictionary<HeuristicLab.Modeling.Database.IVariable, ResultsEntry> inputVariableResultsEntries = 97 98 new Dictionary<HeuristicLab.Modeling.Database.IVariable, ResultsEntry>(); … … 123 124 private void LoadModelAttributes() { 124 125 ordinalVariables = database.GetAllResults().Select(r => r.Name).ToArray(); 125 categoricalVariables = new string[] { "TargetVariable" };126 categoricalVariables = new string[] { "TargetVariable", "Algorithm" }; 126 127 } 127 128 -
trunk/sources/HeuristicLab.CEDMA.Server/3.3/SimpleDispatcher.cs
r2270 r2275 60 60 case LearningTask.Regression: { 61 61 var regressionAlgos = algos.Where(a => (a as IClassificationAlgorithm) == null && (a as ITimeSeriesAlgorithm) == null); 62 selectedAlgorithm = ChooseDeterministic(targetVariable, inputVariables, regressionAlgos) ; //?? ChooseStochastic(regressionAlgos);62 selectedAlgorithm = ChooseDeterministic(targetVariable, inputVariables, regressionAlgos) ?? ChooseStochastic(regressionAlgos); 63 63 break; 64 64 } -
trunk/sources/HeuristicLab.Modeling.Database.SQLServerCompact/3.2/DatabaseService.cs
r2271 r2275 94 94 using (ModelingDataContext ctx = new ModelingDataContext(connection)) { 95 95 ctx.ModelData.InsertOnSubmit(new ModelData(m, PersistenceManager.SaveToGZip(model.Data))); 96 ctx.SubmitChanges(); 96 97 } 97 98 … … 124 125 foreach (MethodInfo inputVariableResultInfo in inputVariableResultInfos) { 125 126 Result result = GetOrCreateResult(inputVariableResultInfo.Name.Substring(3)); 126 foreach (InputVariable variable in ctx.InputVariables.Where(iv => iv.Model == m odel)) {127 foreach (InputVariable variable in ctx.InputVariables.Where(iv => iv.Model == m)) { 127 128 double value = (double)inputVariableResultInfo.Invoke(model, new object[] { variable.Variable.Name }); 128 129 ctx.InputVariableResults.InsertOnSubmit(new InputVariableResult(variable, result, value));
Note: See TracChangeset
for help on using the changeset viewer.