Changeset 1873
- Timestamp:
- 05/20/09 17:38:19 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 13 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.CEDMA.DB.Interfaces/3.3/Ontology.cs
r1529 r1873 91 91 public static Entity PredicateInstanceOf { 92 92 get { return new Entity(CedmaNameSpace + "InstanceOf"); } 93 }94 public static Entity TypeGeneticProgrammingFunctionTree {95 get { return new Entity(CedmaNameSpace + "FunctionTree"); }96 93 } 97 94 public static Entity TypeDataSet { -
trunk/sources/HeuristicLab.CEDMA.Server/3.3/DispatcherBase.cs
r1869 r1873 61 61 DataSet dataSet = new DataSet(store, dataSetEntity); 62 62 63 int targetVariable = SelectTargetVariable(dataSet , dataSet.Problem.AllowedTargetVariables.ToArray());64 IAlgorithm selectedAlgorithm = SelectAlgorithm(dataSet , targetVariable, dataSet.Problem.LearningTask);63 int targetVariable = SelectTargetVariable(dataSetEntity, dataSet.Problem.AllowedTargetVariables.ToArray()); 64 IAlgorithm selectedAlgorithm = SelectAlgorithm(dataSetEntity, targetVariable, dataSet.Problem.LearningTask); 65 65 string targetVariableName = dataSet.Problem.GetVariableName(targetVariable); 66 66 … … 75 75 76 76 public abstract Entity SelectDataSet(Entity[] datasets); 77 public abstract int SelectTargetVariable( DataSetdataSet, int[] targetVariables);78 public abstract IAlgorithm SelectAlgorithm( DataSetdataSet, int targetVariable, LearningTask learningTask);77 public abstract int SelectTargetVariable(Entity dataSet, int[] targetVariables); 78 public abstract IAlgorithm SelectAlgorithm(Entity dataSet, int targetVariable, LearningTask learningTask); 79 79 80 80 private Execution CreateExecution(Problem problem, int targetVariable, IAlgorithm algorithm) { -
trunk/sources/HeuristicLab.CEDMA.Server/3.3/Executer.cs
r1529 r1873 129 129 private void StoreResults(Execution finishedExecution, ProcessingEngine finishedEngine) { 130 130 Entity model = new Entity(Ontology.CedmaNameSpace + Guid.NewGuid()); 131 store.Add(new Statement(model, Ontology.PredicateInstanceOf, Ontology.TypeGeneticProgrammingFunctionTree));132 131 store.Add(new Statement(finishedExecution.DataSetEntity, Ontology.PredicateHasModel, model)); 133 132 StoreModelAttribute(model, Ontology.TargetVariable, finishedExecution.TargetVariable); -
trunk/sources/HeuristicLab.CEDMA.Server/3.3/HeuristicLab.CEDMA.Server-3.3.csproj
r1857 r1873 95 95 <Compile Include="Execution.cs" /> 96 96 <Compile Include="Executer.cs" /> 97 <Compile Include="RandomDispatcher.cs" />98 97 <Compile Include="Server.cs" /> 99 98 <Compile Include="ServerApplication.cs" /> … … 106 105 <DependentUpon>ServerForm.cs</DependentUpon> 107 106 </Compile> 107 <Compile Include="SimpleDispatcher.cs" /> 108 108 </ItemGroup> 109 109 <ItemGroup> -
trunk/sources/HeuristicLab.CEDMA.Server/3.3/ServerForm.cs
r1529 r1873 63 63 64 64 private void connectButton_Click(object sender, EventArgs e) { 65 dispatcher = new RandomDispatcher(store);65 dispatcher = new SimpleDispatcher(store); 66 66 executer = new Executer(dispatcher, store, gridAddress.Text); 67 67 executer.Start(); -
trunk/sources/HeuristicLab.CEDMA.Server/3.3/SimpleDispatcher.cs
r1857 r1873 38 38 39 39 namespace HeuristicLab.CEDMA.Server { 40 public class RandomDispatcher : DispatcherBase {40 public class SimpleDispatcher : DispatcherBase { 41 41 private Random random; 42 public RandomDispatcher(IStore store) 42 private IStore store; 43 private Dictionary<Entity, Dictionary<int, List<string>>> finishedAndDispatchedRuns; 44 45 public SimpleDispatcher(IStore store) 43 46 : base(store) { 47 this.store = store; 44 48 random = new Random(); 49 finishedAndDispatchedRuns = new Dictionary<Entity, Dictionary<int, List<string>>>(); 50 PopulateFinishedRuns(); 45 51 } 46 52 47 public override IAlgorithm SelectAlgorithm( DataSet dataSet, int targetVariable, LearningTask learningTask) {53 public override IAlgorithm SelectAlgorithm(Entity dataSetEntity, int targetVariable, LearningTask learningTask) { 48 54 DiscoveryService ds = new DiscoveryService(); 49 55 IAlgorithm[] algos = ds.GetInstances<IAlgorithm>(); 56 IAlgorithm selectedAlgorithm = null; 50 57 switch (learningTask) { 51 58 case LearningTask.Regression: { 52 59 var regressionAlgos = algos.Where(a => (a as IClassificationAlgorithm) == null && (a as ITimeSeriesAlgorithm) == null); 53 if (regressionAlgos.Count() == 0) return null;54 return regressionAlgos.ElementAt(random.Next(regressionAlgos.Count()));60 selectedAlgorithm = ChooseDeterministic(dataSetEntity, targetVariable, regressionAlgos) ?? ChooseStochastic(regressionAlgos); 61 break; 55 62 } 56 63 case LearningTask.Classification: { 57 64 var classificationAlgos = algos.Where(a => (a as IClassificationAlgorithm) != null); 58 if (classificationAlgos.Count() == 0) return null;59 return classificationAlgos.ElementAt(random.Next(classificationAlgos.Count()));65 selectedAlgorithm = ChooseDeterministic(dataSetEntity, targetVariable, classificationAlgos) ?? ChooseStochastic(classificationAlgos); 66 break; 60 67 } 61 68 case LearningTask.TimeSeries: { 62 69 var timeSeriesAlgos = algos.Where(a => (a as ITimeSeriesAlgorithm) != null); 63 if (timeSeriesAlgos.Count() == 0) return null;64 return timeSeriesAlgos.ElementAt(random.Next(timeSeriesAlgos.Count()));70 selectedAlgorithm = ChooseDeterministic(dataSetEntity, targetVariable, timeSeriesAlgos) ?? ChooseStochastic(timeSeriesAlgos); 71 break; 65 72 } 66 73 } 67 return null; 74 if (selectedAlgorithm != null) { 75 AddDispatchedRun(dataSetEntity, targetVariable, selectedAlgorithm.Name); 76 } 77 return selectedAlgorithm; 78 } 79 80 private IAlgorithm ChooseDeterministic(Entity dataSetEntity, int targetVariable, IEnumerable<IAlgorithm> algos) { 81 var deterministicAlgos = algos 82 .Where(a => (a as IStochasticAlgorithm) == null) 83 .Where(a => AlgorithmFinishedOrDispatched(dataSetEntity, targetVariable, a.Name) == false); 84 85 if (deterministicAlgos.Count() == 0) return null; 86 return deterministicAlgos.ElementAt(random.Next(deterministicAlgos.Count())); 87 } 88 89 private IAlgorithm ChooseStochastic(IEnumerable<IAlgorithm> regressionAlgos) { 90 var stochasticAlgos = regressionAlgos.Where(a => (a as IStochasticAlgorithm) != null); 91 if (stochasticAlgos.Count() == 0) return null; 92 return stochasticAlgos.ElementAt(random.Next(stochasticAlgos.Count())); 68 93 } 69 94 … … 72 97 } 73 98 74 public override int SelectTargetVariable( DataSetdataSet, int[] targetVariables) {99 public override int SelectTargetVariable(Entity dataSet, int[] targetVariables) { 75 100 return targetVariables[random.Next(targetVariables.Length)]; 101 } 102 103 private void PopulateFinishedRuns() { 104 var result = store 105 .Query("?DataSet <" + Ontology.PredicateInstanceOf.Uri + "> <" + Ontology.TypeDataSet.Uri + "> ." + Environment.NewLine + 106 "?DataSet <" + Ontology.PredicateHasModel + "> ?Model ." + Environment.NewLine + 107 "?Model <" + Ontology.TargetVariable + "> ?TargetVariable ." + Environment.NewLine + 108 "?Model <" + Ontology.AlgorithmName + "> ?AlgoName .", 109 0, 1000) 110 .Select(x => new Resource[] { (Entity)x.Get("DataSet"), (Literal)x.Get("TargetVariable"), (Literal)x.Get("AlgoName") }); 111 112 foreach (Resource[] row in result) { 113 Entity dataset = (Entity)row[0]; 114 int targetVariable = (int)((Literal)row[1]).Value; 115 string algoName = (string)((Literal)row[2]).Value; 116 if (!AlgorithmFinishedOrDispatched(dataset, targetVariable, algoName)) 117 AddDispatchedRun(dataset, targetVariable, algoName); 118 } 119 } 120 121 private void AddDispatchedRun(Entity dataSetEntity, int targetVariable, string algoName) { 122 if (!finishedAndDispatchedRuns.ContainsKey(dataSetEntity)) { 123 finishedAndDispatchedRuns[dataSetEntity] = new Dictionary<int, List<string>>(); 124 } 125 if (!finishedAndDispatchedRuns[dataSetEntity].ContainsKey(targetVariable)) { 126 finishedAndDispatchedRuns[dataSetEntity][targetVariable] = new List<string>(); 127 } 128 finishedAndDispatchedRuns[dataSetEntity][targetVariable].Add(algoName); 129 } 130 131 private bool AlgorithmFinishedOrDispatched(Entity dataSetEntity, int targetVariable, string algoName) { 132 return 133 finishedAndDispatchedRuns.ContainsKey(dataSetEntity) && 134 finishedAndDispatchedRuns[dataSetEntity].ContainsKey(targetVariable) && 135 finishedAndDispatchedRuns[dataSetEntity][targetVariable].Contains(algoName); 76 136 } 77 137 } -
trunk/sources/HeuristicLab.GP.StructureIdentification.Classification/3.3/HeuristicLabGPClassificationPlugin.cs
r1856 r1873 34 34 [Dependency(Dependency = "HeuristicLab.GP-3.3")] 35 35 [Dependency(Dependency = "HeuristicLab.GP.StructureIdentification-3.3")] 36 [Dependency(Dependency = "HeuristicLab.Modeling-3. 3")]36 [Dependency(Dependency = "HeuristicLab.Modeling-3.2")] 37 37 [Dependency(Dependency = "HeuristicLab.Operators-3.2")] 38 38 [Dependency(Dependency = "HeuristicLab.Random-3.2")] -
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/AlgorithmBase.cs
r1857 r1873 136 136 IOperator initialization = CreateInitialization(); 137 137 IOperator funLibInjector = CreateFunctionLibraryInjector(); 138 IOperator treeEvaluatorInjector = new HL2TreeEvaluatorInjector(); 139 138 140 IOperator mainLoop = CreateMainLoop(); 139 141 mainLoop.Name = "Main loop"; … … 157 159 seq.AddSubOperator(globalInjector); 158 160 seq.AddSubOperator(funLibInjector); 161 seq.AddSubOperator(treeEvaluatorInjector); 159 162 seq.AddSubOperator(initialization); 160 163 seq.AddSubOperator(mainLoop); -
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/ConfigurableFunctionLibraryInjector.cs
r1540 r1873 28 28 using HeuristicLab.DataAnalysis; 29 29 using HeuristicLab.Constraints; 30 using StructId = HeuristicLab.GP.StructureIdentification;31 30 32 31 namespace HeuristicLab.GP.StructureIdentification { … … 66 65 AddVariableInfo(new Core.VariableInfo(VARIABLES_ALLOWED, VARIABLES_ALLOWED + " allowed", typeof(BoolData), Core.VariableKind.New)); 67 66 GetVariableInfo(VARIABLES_ALLOWED).Local = true; 68 AddVariable(new Core.Variable(VARIABLES_ALLOWED, 67 AddVariable(new Core.Variable(VARIABLES_ALLOWED, new BoolData(true))); 69 68 70 69 AddVariableInfo(new Core.VariableInfo(CONSTANTS_ALLOWED, CONSTANTS_ALLOWED + " allowed", typeof(BoolData), Core.VariableKind.New)); 71 70 GetVariableInfo(CONSTANTS_ALLOWED).Local = true; 72 AddVariable(new Core.Variable(CONSTANTS_ALLOWED, 71 AddVariable(new Core.Variable(CONSTANTS_ALLOWED, new BoolData(true))); 73 72 74 73 AddVariableInfo(new Core.VariableInfo(ADDITION_ALLOWED, ADDITION_ALLOWED + " allowed", typeof(BoolData), Core.VariableKind.New)); 75 74 GetVariableInfo(ADDITION_ALLOWED).Local = true; 76 AddVariable(new Core.Variable(ADDITION_ALLOWED, 75 AddVariable(new Core.Variable(ADDITION_ALLOWED, new BoolData(true))); 77 76 78 77 AddVariableInfo(new Core.VariableInfo(AVERAGE_ALLOWED, AVERAGE_ALLOWED + " allowed", typeof(BoolData), Core.VariableKind.New)); 79 78 GetVariableInfo(AVERAGE_ALLOWED).Local = true; 80 AddVariable(new Core.Variable(AVERAGE_ALLOWED, 79 AddVariable(new Core.Variable(AVERAGE_ALLOWED, new BoolData(true))); 81 80 82 81 AddVariableInfo(new Core.VariableInfo(AND_ALLOWED, AND_ALLOWED + " allowed", typeof(BoolData), Core.VariableKind.New)); 83 82 GetVariableInfo(AND_ALLOWED).Local = true; 84 AddVariable(new Core.Variable(AND_ALLOWED, 83 AddVariable(new Core.Variable(AND_ALLOWED, new BoolData(true))); 85 84 86 85 AddVariableInfo(new Core.VariableInfo(COSINUS_ALLOWED, COSINUS_ALLOWED + " allowed", typeof(BoolData), Core.VariableKind.New)); 87 86 GetVariableInfo(COSINUS_ALLOWED).Local = true; 88 AddVariable(new Core.Variable(COSINUS_ALLOWED, 87 AddVariable(new Core.Variable(COSINUS_ALLOWED, new BoolData(true))); 89 88 90 89 AddVariableInfo(new Core.VariableInfo(DIVISION_ALLOWED, DIVISION_ALLOWED + " allowed", typeof(BoolData), Core.VariableKind.New)); 91 90 GetVariableInfo(DIVISION_ALLOWED).Local = true; 92 AddVariable(new Core.Variable(DIVISION_ALLOWED, 91 AddVariable(new Core.Variable(DIVISION_ALLOWED, new BoolData(true))); 93 92 94 93 AddVariableInfo(new Core.VariableInfo(EQUAL_ALLOWED, EQUAL_ALLOWED + " allowed", typeof(BoolData), Core.VariableKind.New)); 95 94 GetVariableInfo(EQUAL_ALLOWED).Local = true; 96 AddVariable(new Core.Variable(EQUAL_ALLOWED, 95 AddVariable(new Core.Variable(EQUAL_ALLOWED, new BoolData(true))); 97 96 98 97 AddVariableInfo(new Core.VariableInfo(EXPONENTIAL_ALLOWED, EXPONENTIAL_ALLOWED + " allowed", typeof(BoolData), Core.VariableKind.New)); 99 98 GetVariableInfo(EXPONENTIAL_ALLOWED).Local = true; 100 AddVariable(new Core.Variable(EXPONENTIAL_ALLOWED, 99 AddVariable(new Core.Variable(EXPONENTIAL_ALLOWED, new BoolData(true))); 101 100 102 101 AddVariableInfo(new Core.VariableInfo(GREATERTHAN_ALLOWED, GREATERTHAN_ALLOWED + " allowed", typeof(BoolData), Core.VariableKind.New)); 103 102 GetVariableInfo(GREATERTHAN_ALLOWED).Local = true; 104 AddVariable(new Core.Variable(GREATERTHAN_ALLOWED, 103 AddVariable(new Core.Variable(GREATERTHAN_ALLOWED, new BoolData(true))); 105 104 106 105 AddVariableInfo(new Core.VariableInfo(IFTHENELSE_ALLOWED, IFTHENELSE_ALLOWED + " allowed", typeof(BoolData), Core.VariableKind.New)); 107 106 GetVariableInfo(IFTHENELSE_ALLOWED).Local = true; 108 AddVariable(new Core.Variable(IFTHENELSE_ALLOWED, 107 AddVariable(new Core.Variable(IFTHENELSE_ALLOWED, new BoolData(true))); 109 108 110 109 AddVariableInfo(new Core.VariableInfo(LESSTHAN_ALLOWED, LESSTHAN_ALLOWED + " allowed", typeof(BoolData), Core.VariableKind.New)); 111 110 GetVariableInfo(LESSTHAN_ALLOWED).Local = true; 112 AddVariable(new Core.Variable(LESSTHAN_ALLOWED, 111 AddVariable(new Core.Variable(LESSTHAN_ALLOWED, new BoolData(true))); 113 112 114 113 AddVariableInfo(new Core.VariableInfo(LOGARTIHM_ALLOWED, LOGARTIHM_ALLOWED + " allowed", typeof(BoolData), Core.VariableKind.New)); 115 114 GetVariableInfo(LOGARTIHM_ALLOWED).Local = true; 116 AddVariable(new Core.Variable(LOGARTIHM_ALLOWED, 115 AddVariable(new Core.Variable(LOGARTIHM_ALLOWED, new BoolData(true))); 117 116 118 117 AddVariableInfo(new Core.VariableInfo(MULTIPLICATION_ALLOWED, MULTIPLICATION_ALLOWED + " allowed", typeof(BoolData), Core.VariableKind.New)); 119 118 GetVariableInfo(MULTIPLICATION_ALLOWED).Local = true; 120 AddVariable(new Core.Variable(MULTIPLICATION_ALLOWED, 119 AddVariable(new Core.Variable(MULTIPLICATION_ALLOWED, new BoolData(true))); 121 120 122 121 AddVariableInfo(new Core.VariableInfo(NOT_ALLOWED, NOT_ALLOWED + " allowed", typeof(BoolData), Core.VariableKind.New)); 123 122 GetVariableInfo(NOT_ALLOWED).Local = true; 124 AddVariable(new Core.Variable(NOT_ALLOWED, 123 AddVariable(new Core.Variable(NOT_ALLOWED, new BoolData(true))); 125 124 126 125 AddVariableInfo(new Core.VariableInfo(POWER_ALLOWED, POWER_ALLOWED + " allowed", typeof(BoolData), Core.VariableKind.New)); 127 126 GetVariableInfo(POWER_ALLOWED).Local = true; 128 AddVariable(new Core.Variable(POWER_ALLOWED, 127 AddVariable(new Core.Variable(POWER_ALLOWED, new BoolData(true))); 129 128 130 129 AddVariableInfo(new Core.VariableInfo(OR_ALLOWED, OR_ALLOWED + " allowed", typeof(BoolData), Core.VariableKind.New)); 131 130 GetVariableInfo(OR_ALLOWED).Local = true; 132 AddVariable(new Core.Variable(OR_ALLOWED, 131 AddVariable(new Core.Variable(OR_ALLOWED, new BoolData(true))); 133 132 134 133 AddVariableInfo(new Core.VariableInfo(SIGNUM_ALLOWED, SIGNUM_ALLOWED + " allowed", typeof(BoolData), Core.VariableKind.New)); 135 134 GetVariableInfo(SIGNUM_ALLOWED).Local = true; 136 AddVariable(new Core.Variable(SIGNUM_ALLOWED, 135 AddVariable(new Core.Variable(SIGNUM_ALLOWED, new BoolData(true))); 137 136 138 137 AddVariableInfo(new Core.VariableInfo(SINUS_ALLOWED, SINUS_ALLOWED + " allowed", typeof(BoolData), Core.VariableKind.New)); 139 138 GetVariableInfo(SINUS_ALLOWED).Local = true; 140 AddVariable(new Core.Variable(SINUS_ALLOWED, 139 AddVariable(new Core.Variable(SINUS_ALLOWED, new BoolData(true))); 141 140 142 141 AddVariableInfo(new Core.VariableInfo(SQRT_ALLOWED, SQRT_ALLOWED + " allowed", typeof(BoolData), Core.VariableKind.New)); … … 146 145 AddVariableInfo(new Core.VariableInfo(SUBTRACTION_ALLOWED, SUBTRACTION_ALLOWED + " allowed", typeof(BoolData), Core.VariableKind.New)); 147 146 GetVariableInfo(SUBTRACTION_ALLOWED).Local = true; 148 AddVariable(new Core.Variable(SUBTRACTION_ALLOWED, 147 AddVariable(new Core.Variable(SUBTRACTION_ALLOWED, new BoolData(true))); 149 148 150 149 AddVariableInfo(new Core.VariableInfo(TANGENS_ALLOWED, TANGENS_ALLOWED + " allowed", typeof(BoolData), Core.VariableKind.New)); … … 154 153 AddVariableInfo(new Core.VariableInfo(XOR_ALLOWED, XOR_ALLOWED + " allowed", typeof(BoolData), Core.VariableKind.New)); 155 154 GetVariableInfo(XOR_ALLOWED).Local = true; 156 AddVariable(new Core.Variable(XOR_ALLOWED, new BoolData(true))); 157 } 158 159 //public override IView CreateView() { 160 // return new ConfigurableFunctionLibraryInjectorView(this); 161 //} 155 AddVariable(new Core.Variable(XOR_ALLOWED, new BoolData(true))); 156 } 162 157 163 158 public override IOperation Apply(IScope scope) { … … 180 175 if (!((BoolData)GetVariable(DIVISION_ALLOWED).Value).Data) 181 176 functionLibrary.GPOperatorGroup.RemoveOperator(FindOperator(functionLibrary.GPOperatorGroup, typeof(Division))); 182 if (!((BoolData)GetVariable(EQUAL_ALLOWED).Value).Data) 177 if (!((BoolData)GetVariable(EQUAL_ALLOWED).Value).Data) 183 178 functionLibrary.GPOperatorGroup.RemoveOperator(FindOperator(functionLibrary.GPOperatorGroup, typeof(Equal))); 184 179 if (!((BoolData)GetVariable(EXPONENTIAL_ALLOWED).Value).Data) … … 212 207 if (!((BoolData)GetVariable(XOR_ALLOWED).Value).Data) 213 208 functionLibrary.GPOperatorGroup.RemoveOperator(FindOperator(functionLibrary.GPOperatorGroup, typeof(Xor))); 214 215 216 209 return null; 217 210 } 218 211 219 private IFunction FindOperator(GPOperatorGroup g, Type t) 212 private IFunction FindOperator(GPOperatorGroup g, Type t) { 220 213 foreach (IFunction func in g.Operators) 221 214 if (func.GetType() == t) 222 215 return func; 223 216 return null; 224 } 225 226 217 } 227 218 } 228 219 } -
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/OffSpringSelectionGpEditor.cs
r1529 r1873 74 74 protected virtual void SetDataBinding() { 75 75 setRandomSeedRandomlyCheckBox.DataBindings.Add("Checked", OffspringSelectionGP, "SetSeedRandomly"); 76 randomSeedTextBox.DataBindings.Add("Text", OffspringSelectionGP, " Seed");76 randomSeedTextBox.DataBindings.Add("Text", OffspringSelectionGP, "RandomSeed"); 77 77 populationSizeTextBox.DataBindings.Add("Text", OffspringSelectionGP, "PopulationSize"); 78 78 maximumEvaluatedSolutionsTextBox.DataBindings.Add("Text", OffspringSelectionGP, "MaxEvaluatedSolutions"); -
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/StandardGP.cs
r1857 r1873 142 142 143 143 protected internal override IOperator CreateFunctionLibraryInjector() { 144 return new FunctionLibraryInjector(); 144 ConfigurableFunctionLibraryInjector funLibInjector = new ConfigurableFunctionLibraryInjector(); 145 funLibInjector.GetVariableValue<BoolData>("Xor", null, false).Data = false; 146 funLibInjector.GetVariableValue<BoolData>("Average", null, false).Data = false; 147 return funLibInjector; 145 148 } 146 149 -
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/StandardGpEditor.cs
r1529 r1873 73 73 protected virtual void SetDataBinding() { 74 74 setRandomSeedRandomlyCheckBox.DataBindings.Add("Checked", StandardGP, "SetSeedRandomly"); 75 randomSeedTextBox.DataBindings.Add("Text", StandardGP, " Seed");75 randomSeedTextBox.DataBindings.Add("Text", StandardGP, "RandomSeed"); 76 76 populationSizeTextBox.DataBindings.Add("Text", StandardGP, "PopulationSize"); 77 77 maximumGenerationsTextBox.DataBindings.Add("Text", StandardGP, "MaxGenerations"); -
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/TreeEvaluatorBase.cs
r1836 r1873 124 124 public override object Clone(IDictionary<Guid, object> clonedObjects) { 125 125 TreeEvaluatorBase clone = (TreeEvaluatorBase)base.Clone(clonedObjects); 126 clone.dataset = (Dataset)dataset.Clone(clonedObjects); 126 if (!clonedObjects.ContainsKey(dataset.Guid)) { 127 clone.dataset = (Dataset)dataset.Clone(clonedObjects); 128 } else { 129 clone.dataset = (Dataset)clonedObjects[dataset.Guid]; 130 } 127 131 clone.estimatedValueMax = estimatedValueMax; 128 132 clone.estimatedValueMin = estimatedValueMin; -
trunk/sources/HeuristicLab.SupportVectorMachines/3.2/SupportVectorRegression.cs
r1869 r1873 140 140 ((ItemList<StringData>)collector.GetVariable("VariableNames").Value).Add(new StringData("Nu")); 141 141 ((ItemList<StringData>)collector.GetVariable("VariableNames").Value).Add(new StringData("Cost")); 142 ((ItemList<StringData>)collector.GetVariable("VariableNames").Value).Add(new StringData("Validation MSE"));142 ((ItemList<StringData>)collector.GetVariable("VariableNames").Value).Add(new StringData("ValidationQuality")); 143 143 modelProcessor.AddSubOperator(collector); 144 144 145 145 BestSolutionStorer solStorer = new BestSolutionStorer(); 146 solStorer.GetVariableInfo("Quality").ActualName = "Validation MSE";146 solStorer.GetVariableInfo("Quality").ActualName = "ValidationQuality"; 147 147 solStorer.GetVariableInfo("Maximization").Local = true; 148 148 solStorer.GetVariableInfo("BestSolution").ActualName = "BestValidationSolution"; … … 201 201 mseEvaluator.Name = p + "MseEvaluator"; 202 202 mseEvaluator.GetVariableInfo("Values").ActualName = p + "Values"; 203 mseEvaluator.GetVariableInfo("MSE").ActualName = p + " MSE";203 mseEvaluator.GetVariableInfo("MSE").ActualName = p + "Quality"; 204 204 SimpleR2Evaluator r2Evaluator = new SimpleR2Evaluator(); 205 205 r2Evaluator.Name = p + "R2Evaluator";
Note: See TracChangeset
for help on using the changeset viewer.