- Timestamp:
- 07/15/09 16:23:29 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.GP.StructureIdentification.TimeSeries/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification.TimeSeries/3.3/OffspringSelectionGP.cs
r2130 r2161 35 35 namespace HeuristicLab.GP.StructureIdentification.TimeSeries { 36 36 public class OffspringSelectionGP : HeuristicLab.GP.StructureIdentification.OffspringSelectionGP, ITimeSeriesAlgorithm { 37 public override IOperator ProblemInjector { 38 get { 39 CombinedOperator algo = (CombinedOperator)Engine.OperatorGraph.InitialOperator; 40 return algo.OperatorGraph.InitialOperator.SubOperators[1]; 41 } 42 set { 43 CombinedOperator algo = (CombinedOperator)Engine.OperatorGraph.InitialOperator; 44 algo.OperatorGraph.InitialOperator.RemoveSubOperator(1); 45 value.Name = "ProblemInjector"; 46 algo.OperatorGraph.InitialOperator.AddSubOperator(value, 1); 47 } 48 } 49 37 50 protected override IOperator CreateFunctionLibraryInjector() { 38 51 return new FunctionLibraryInjector(); -
trunk/sources/HeuristicLab.GP.StructureIdentification.TimeSeries/3.3/StandardGP.cs
r2130 r2161 35 35 namespace HeuristicLab.GP.StructureIdentification.TimeSeries { 36 36 public class StandardGP : HeuristicLab.GP.StructureIdentification.StandardGP, ITimeSeriesAlgorithm { 37 public override IOperator ProblemInjector { 38 get { 39 CombinedOperator algo = (CombinedOperator)Engine.OperatorGraph.InitialOperator; 40 return algo.OperatorGraph.InitialOperator.SubOperators[1]; 41 } 42 set { 43 CombinedOperator algo = (CombinedOperator)Engine.OperatorGraph.InitialOperator; 44 algo.OperatorGraph.InitialOperator.RemoveSubOperator(1); 45 value.Name = "ProblemInjector"; 46 algo.OperatorGraph.InitialOperator.AddSubOperator(value, 1); 47 } 48 } 49 37 50 protected override IOperator CreateFunctionLibraryInjector() { 38 51 return new FunctionLibraryInjector(); … … 61 74 SequentialProcessor seq = new SequentialProcessor(); 62 75 TheilInequalityCoefficientEvaluator trainingTheil = new TheilInequalityCoefficientEvaluator(); 63 trainingTheil.GetVariableInfo("SamplesStart").ActualName = " TrainingSamplesStart";64 trainingTheil.GetVariableInfo("SamplesEnd").ActualName = " TrainingSamplesEnd";76 trainingTheil.GetVariableInfo("SamplesStart").ActualName = "ActualTrainingSamplesStart"; 77 trainingTheil.GetVariableInfo("SamplesEnd").ActualName = "ActualTrainingSamplesEnd"; 65 78 trainingTheil.GetVariableInfo("TheilInequalityCoefficient").ActualName = "TrainingTheilInequalityCoefficient"; 66 79 trainingTheil.GetVariableInfo("TheilInequalityCoefficientBias").ActualName = "TrainingTheilInequalityCoefficientBias"; … … 69 82 70 83 TheilInequalityCoefficientEvaluator validationTheil = new TheilInequalityCoefficientEvaluator(); 71 validationTheil.GetVariableInfo("SamplesStart").ActualName = " ValidationSamplesStart";72 validationTheil.GetVariableInfo("SamplesEnd").ActualName = " ValidationSamplesEnd";84 validationTheil.GetVariableInfo("SamplesStart").ActualName = "ActualValidationSamplesStart"; 85 validationTheil.GetVariableInfo("SamplesEnd").ActualName = "ActualValidationSamplesEnd"; 73 86 validationTheil.GetVariableInfo("TheilInequalityCoefficient").ActualName = "ValidationTheilInequalityCoefficient"; 74 87 validationTheil.GetVariableInfo("TheilInequalityCoefficientBias").ActualName = "ValidationTheilInequalityCoefficientBias"; … … 77 90 78 91 TheilInequalityCoefficientEvaluator testTheil = new TheilInequalityCoefficientEvaluator(); 79 testTheil.GetVariableInfo("SamplesStart").ActualName = " TestSamplesStart";80 testTheil.GetVariableInfo("SamplesEnd").ActualName = " TestSamplesEnd";92 testTheil.GetVariableInfo("SamplesStart").ActualName = "ActualTestSamplesStart"; 93 testTheil.GetVariableInfo("SamplesEnd").ActualName = "ActualTestSamplesEnd"; 81 94 testTheil.GetVariableInfo("TheilInequalityCoefficient").ActualName = "TestTheilInequalityCoefficient"; 82 95 testTheil.GetVariableInfo("TheilInequalityCoefficientBias").ActualName = "TestTheilInequalityCoefficientBias"; … … 85 98 86 99 SimpleEvaluator trainingEvaluator = new SimpleEvaluator(); 87 trainingEvaluator.GetVariableInfo("SamplesStart").ActualName = " TrainingSamplesStart";88 trainingEvaluator.GetVariableInfo("SamplesEnd").ActualName = " TrainingSamplesEnd";100 trainingEvaluator.GetVariableInfo("SamplesStart").ActualName = "ActualTrainingSamplesStart"; 101 trainingEvaluator.GetVariableInfo("SamplesEnd").ActualName = "ActualTrainingSamplesEnd"; 89 102 trainingEvaluator.GetVariableInfo("Values").ActualName = "PredictedValuesTraining"; 90 103
Note: See TracChangeset
for help on using the changeset viewer.