Changeset 2130 for trunk/sources/HeuristicLab.GP.StructureIdentification
- Timestamp:
- 07/02/09 13:17:14 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.GP.StructureIdentification
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/Evaluators/GPEvaluatorBase.cs ¶
r2038 r2130 44 44 AddVariableInfo(new VariableInfo("SamplesStart", "Start index of samples in dataset to evaluate", typeof(IntData), VariableKind.In)); 45 45 AddVariableInfo(new VariableInfo("SamplesEnd", "End index of samples in dataset to evaluate", typeof(IntData), VariableKind.In)); 46 AddVariableInfo(new VariableInfo("UseEstimatedTargetValue", "Wether to use the original (measured) or the estimated (calculated) value for the targ at variable when doingautoregressive modelling", typeof(BoolData), VariableKind.In));46 AddVariableInfo(new VariableInfo("UseEstimatedTargetValue", "Wether to use the original (measured) or the estimated (calculated) value for the target variable for autoregressive modelling", typeof(BoolData), VariableKind.In)); 47 47 } 48 48 -
TabularUnified trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/FunctionLibraryInjector.cs ¶
r1911 r2130 35 35 private const string TARGETVARIABLE = "TargetVariable"; 36 36 private const string ALLOWEDFEATURES = "AllowedFeatures"; 37 private const string AUTOREGRESSIVE = "Autoregressive";38 37 private const string MINTIMEOFFSET = "MinTimeOffset"; 39 38 private const string MAXTIMEOFFSET = "MaxTimeOffset"; … … 73 72 AddVariableInfo(new VariableInfo(TARGETVARIABLE, "The target variable", typeof(IntData), VariableKind.In)); 74 73 AddVariableInfo(new VariableInfo(ALLOWEDFEATURES, "List of indexes of allowed features", typeof(ItemList<IntData>), VariableKind.In)); 75 AddVariableInfo(new Core.VariableInfo(AUTOREGRESSIVE, "Switch to turn on/off autoregressive modeling (wether to allow the target variable as input)", typeof(BoolData), Core.VariableKind.In));76 74 AddVariableInfo(new Core.VariableInfo(MINTIMEOFFSET, "Minimal time offset for all features", typeof(IntData), Core.VariableKind.In)); 77 75 AddVariableInfo(new Core.VariableInfo(MAXTIMEOFFSET, "Maximal time offset for all feature", typeof(IntData), Core.VariableKind.In)); … … 123 121 IItem maxTimeOffsetItem = GetVariableValue(MAXTIMEOFFSET, scope, true, false); 124 122 int maxTimeOffset = maxTimeOffsetItem == null ? 0 : ((IntData)maxTimeOffsetItem).Data; 125 // try to get flag autoregressive (use false as default if not available)126 IItem autoRegItem = GetVariableValue(AUTOREGRESSIVE, scope, true, false);127 bool autoregressive = autoRegItem == null ? false : ((BoolData)autoRegItem).Data;128 129 if (autoregressive) {130 // make sure the target-variable occures in list of allowed features131 if (!allowedFeatures.Exists(d => d.Data == targetVariable)) allowedFeatures.Add(new IntData(targetVariable));132 } else {133 // remove the target-variable in case it occures in allowed features134 List<IntData> ts = allowedFeatures.FindAll(d => d.Data == targetVariable);135 foreach (IntData t in ts) allowedFeatures.Remove(t);136 }137 123 138 124 variable = new StructId.Variable(); -
TabularUnified trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/OffspringSelectionGP.cs ¶
r1857 r2130 75 75 PopulationSize = 1000; 76 76 Parents = 20; 77 MaxEvaluatedSolutions = 1000000;78 SelectionPressureLimit = 300;77 MaxEvaluatedSolutions = 5000000; 78 SelectionPressureLimit = 400; 79 79 ComparisonFactor = 1.0; 80 80 SuccessRatioLimit = 1.0; -
TabularUnified trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/StandardGP.cs ¶
r1922 r2130 99 99 : base() { 100 100 PopulationSize = 10000; 101 MaxGenerations = 100;101 MaxGenerations = 500; 102 102 TournamentSize = 7; 103 103 MutationRate = 0.15; -
TabularUnified trunk/sources/HeuristicLab.GP.StructureIdentification/3.4/Evaluators/GPEvaluatorBase.cs ¶
r1891 r2130 42 42 AddVariableInfo(new VariableInfo("SamplesStart", "Start index of samples in dataset to evaluate", typeof(IntData), VariableKind.In)); 43 43 AddVariableInfo(new VariableInfo("SamplesEnd", "End index of samples in dataset to evaluate", typeof(IntData), VariableKind.In)); 44 AddVariableInfo(new VariableInfo("UseEstimatedTargetValue", "Wether to use the original (measured) or the estimated (calculated) value for the targ at variable when doingautoregressive modelling", typeof(BoolData), VariableKind.In));44 AddVariableInfo(new VariableInfo("UseEstimatedTargetValue", "Wether to use the original (measured) or the estimated (calculated) value for the target variable for autoregressive modelling", typeof(BoolData), VariableKind.In)); 45 45 } 46 46
Note: See TracChangeset
for help on using the changeset viewer.