Changeset 172
- Timestamp:
- 04/23/08 13:13:06 (17 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DataAnalysis/DatasetParser.cs
r2 r172 89 89 public int TrainingSamplesStart { 90 90 get { 91 return metadata["TRAININGSAMPLESSTART"][0].intValue; 91 if(!metadata.ContainsKey("TRAININGSAMPLESTART")) return 0; 92 else return metadata["TRAININGSAMPLESSTART"][0].intValue; 92 93 } 93 94 } … … 95 96 public int TrainingSamplesEnd { 96 97 get { 97 return metadata["TRAININGSAMPLESEND"][0].intValue; 98 if(!metadata.ContainsKey("TRAININGSAMPLEEND")) return rows; 99 else return metadata["TRAININGSAMPLESEND"][0].intValue; 98 100 } 99 101 } -
trunk/sources/HeuristicLab.StructureIdentification/StructIdProblemInjector.cs
r171 r172 41 41 AddVariableInfo(new VariableInfo("TargetVariable", "TargetVariable", typeof(IntData), VariableKind.New)); 42 42 AddVariable(new Variable("TargetVariable", new IntData())); 43 AddVariableInfo(new VariableInfo("MaxTreeHeight", "MaxTreeHeight", typeof(IntData), VariableKind.New));44 AddVariable(new Variable("MaxTreeHeight", new IntData(1)));45 AddVariableInfo(new VariableInfo("MaxTreeSize", "MaxTreeSize", typeof(IntData), VariableKind.New));46 AddVariable(new Variable("MaxTreeSize", new IntData(1)));47 43 } 48 44 … … 54 50 scope.AddVariable(new Variable(scope.TranslateName("Dataset"), (IItem)GetVariable("Dataset").Value.Clone())); 55 51 scope.AddVariable(new Variable(scope.TranslateName("TargetVariable"), (IItem)GetVariable("TargetVariable").Value.Clone())); 56 scope.AddVariable(new Variable(scope.TranslateName("MaxTreeHeight"), (IItem)GetVariable("MaxTreeHeight").Value.Clone()));57 scope.AddVariable(new Variable(scope.TranslateName("MaxTreeSize"), (IItem)GetVariable("MaxTreeSize").Value.Clone()));58 52 return null; 59 53 } -
trunk/sources/HeuristicLab.StructureIdentification/StructIdProblemInjectorView.cs
r168 r172 91 91 92 92 ((IntData)StructIdProblemInjector.GetVariable("TargetVariable").Value).Data = parser.TargetVariable; 93 ((IntData)StructIdProblemInjector.GetVariable("MaxTreeHeight").Value).Data = parser.MaxTreeHeight;94 ((IntData)StructIdProblemInjector.GetVariable("MaxTreeSize").Value).Data = parser.MaxTreeSize;95 93 Refresh(); 96 94 }
Note: See TracChangeset
for help on using the changeset viewer.