- Timestamp:
- 08/10/09 14:11:37 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.CEDMA.Server/3.3/SimpleDispatcher.cs
r2258 r2270 43 43 } 44 44 45 private Random random; 45 private Random random; 46 46 private Dictionary<int, List<AlgorithmConfiguration>> finishedAndDispatchedRuns; 47 47 48 48 public SimpleDispatcher(IModelingDatabase database, Problem problem) 49 : base(database, problem) { 49 : base(database, problem) { 50 50 random = new Random(); 51 51 finishedAndDispatchedRuns = new Dictionary<int, List<AlgorithmConfiguration>>(); … … 100 100 private void PopulateFinishedRuns() { 101 101 var dispatchedAlgos = from model in Database.GetAllModels() 102 select new { 103 TargetVariable = model.TargetVariable.Name, 104 Algorithm = model.Algorithm.Name, 105 Inputvariables = Database.GetInputVariableResults(model).Select(x => x.Variable.Name).Distinct() }; 102 select new { 103 TargetVariable = model.TargetVariable.Name, 104 Algorithm = model.Algorithm.Name, 105 Inputvariables = Database.GetInputVariableResults(model).Select(x => x.Variable.Name).Distinct() 106 }; 106 107 foreach (var algo in dispatchedAlgos) { 107 108 AddDispatchedRun(algo.TargetVariable, algo.Inputvariables, algo.Algorithm); … … 144 145 private void AddDispatchedRun(string targetVariable, IEnumerable<string> inputVariables, string algorithm) { 145 146 AddDispatchedRun( 146 Problem.Dataset.GetVariableIndex(targetVariable), 147 inputVariables.Select(x => Problem.Dataset.GetVariableIndex(x)).ToArray(), 147 Problem.Dataset.GetVariableIndex(targetVariable), 148 inputVariables.Select(x => Problem.Dataset.GetVariableIndex(x)).ToArray(), 148 149 algorithm); 149 150 }
Note: See TracChangeset
for help on using the changeset viewer.