Changeset 487 for trunk/sources/HeuristicLab.StructureIdentification
- Timestamp:
- 08/10/08 23:02:49 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.StructureIdentification
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.StructureIdentification/FunctionLibraryInjector.cs
r471 r487 35 35 private const string MINTIMEOFFSET = "MinTimeOffset"; 36 36 private const string MAXTIMEOFFSET = "MaxTimeOffset"; 37 private const string OPERATORLIBRARY = " OperatorLibrary";37 private const string OPERATORLIBRARY = "FunctionLibrary"; 38 38 39 39 private HeuristicLab.Functions.Variable variable; … … 48 48 : base() { 49 49 AddVariableInfo(new VariableInfo(ALLOWEDFEATURES, "List of indexes of allowed features", typeof(ItemList<IntData>), VariableKind.In)); 50 GetVariableInfo(ALLOWEDFEATURES).Local = true;51 AddVariable(new Variable(ALLOWEDFEATURES, new ItemList<IntData>()));52 53 50 AddVariableInfo(new VariableInfo(MINTIMEOFFSET, "Minimal time offset for all features", typeof(IntData), VariableKind.In)); 54 GetVariableInfo(MINTIMEOFFSET).Local = true;55 AddVariable(new Variable(MINTIMEOFFSET, new IntData()));56 57 51 AddVariableInfo(new VariableInfo(MAXTIMEOFFSET, "Maximal time offset for all feature", typeof(IntData), VariableKind.In)); 58 GetVariableInfo(MAXTIMEOFFSET).Local = true; 59 AddVariable(new Variable(MAXTIMEOFFSET, new IntData())); 60 61 AddVariableInfo(new VariableInfo("OperatorLibrary", "Preconfigured default operator library", typeof(GPOperatorLibrary), VariableKind.New)); 52 AddVariableInfo(new VariableInfo(OPERATORLIBRARY, "Preconfigured default operator library", typeof(GPOperatorLibrary), VariableKind.New)); 62 53 } 63 54 -
trunk/sources/HeuristicLab.StructureIdentification/StructIdProblemInjector.cs
r461 r487 45 45 AddVariable(new Variable("TargetVariable", new IntData())); 46 46 47 AddVariableInfo(new VariableInfo("AllowedFeatures", "Indexes of allowed input variables", typeof(ItemList<IntData>), VariableKind.New)); 48 GetVariableInfo("AllowedFeatures").Local = true; 49 AddVariable(new Variable("AllowedFeatures", new ItemList<IntData>())); 50 47 51 AddVariableInfo(new VariableInfo("TrainingSamplesStart", "TrainingSamplesStart", typeof(IntData), VariableKind.New)); 48 52 GetVariableInfo("TrainingSamplesStart").Local = true; -
trunk/sources/HeuristicLab.StructureIdentification/StructIdProblemInjectorView.cs
r404 r487 105 105 ((IntData)StructIdProblemInjector.GetVariable("TestSamplesEnd").Value).Data = parser.TestSamplesEnd; 106 106 ((IntData)StructIdProblemInjector.GetVariable("TargetVariable").Value).Data = parser.TargetVariable; 107 ItemList<IntData> allowedFeatures = (ItemList<IntData>)StructIdProblemInjector.GetVariable("AllowedFeatures").Value; 108 List<int> nonInputVariables = parser.NonInputVariables; 109 for(int i = 0; i < dataset.Columns; i++) { 110 if(!nonInputVariables.Contains(i)) allowedFeatures.Add(new IntData(i)); 111 } 107 112 Refresh(); 108 113 }
Note: See TracChangeset
for help on using the changeset viewer.