- Timestamp:
- 07/29/08 11:37:13 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DataAnalysis/DatasetParser.cs
r363 r397 37 37 private const string VALIDATIONSAMPLESSTART = "VALIDATIONSAMPLESSTART"; 38 38 private const string VALIDATIONSAMPLESEND = "VALIDATIONSAMPLESEND"; 39 private const string TESTSAMPLESSTART = "TESTSAMPLESSTART"; 40 private const string TESTSAMPLESEND = "TESTSAMPLESEND"; 39 41 private Tokenizer tokenizer; 40 42 private Dictionary<string, List<Token>> metadata; … … 138 140 if(metadata.ContainsKey(VALIDATIONSAMPLESEND)) { 139 141 return metadata[VALIDATIONSAMPLESEND][0].intValue; 142 } else return rows; 143 } 144 } 145 public int TestSamplesStart { 146 get { 147 if(metadata.ContainsKey(TESTSAMPLESSTART)) { 148 return metadata[TESTSAMPLESSTART][0].intValue; 149 } else return 0; 150 } 151 } 152 153 public int TestSamplesEnd { 154 get { 155 if(metadata.ContainsKey(TESTSAMPLESEND)) { 156 return metadata[TESTSAMPLESEND][0].intValue; 140 157 } else return rows; 141 158 } -
trunk/sources/HeuristicLab.StructureIdentification/StructIdProblemInjector.cs
r363 r397 49 49 AddVariableInfo(new VariableInfo("ValidationSamplesEnd", "ValidationSamplesEnd", typeof(IntData), VariableKind.New)); 50 50 AddVariable(new Variable("ValidationSamplesEnd", new IntData())); 51 AddVariableInfo(new VariableInfo("TestSamplesStart", "TestSamplesStart", typeof(IntData), VariableKind.New)); 52 AddVariable(new Variable("TestSamplesStart", new IntData())); 53 AddVariableInfo(new VariableInfo("TestSamplesEnd", "TestSamplesEnd", typeof(IntData), VariableKind.New)); 54 AddVariable(new Variable("TestSamplesEnd", new IntData())); 51 55 } 52 56 … … 62 66 scope.AddVariable(new Variable(scope.TranslateName("ValidationSamplesStart"), (IItem)GetVariable("ValidationSamplesStart").Value.Clone())); 63 67 scope.AddVariable(new Variable(scope.TranslateName("ValidationSamplesEnd"), (IItem)GetVariable("ValidationSamplesEnd").Value.Clone())); 68 scope.AddVariable(new Variable(scope.TranslateName("TestSamplesStart"), (IItem)GetVariable("TestSamplesStart").Value.Clone())); 69 scope.AddVariable(new Variable(scope.TranslateName("TestSamplesEnd"), (IItem)GetVariable("TestSamplesEnd").Value.Clone())); 64 70 return null; 65 71 } -
trunk/sources/HeuristicLab.StructureIdentification/StructIdProblemInjectorView.cs
r366 r397 101 101 ((IntData)StructIdProblemInjector.GetVariable("ValidationSamplesStart").Value).Data = parser.ValidationSamplesStart; 102 102 ((IntData)StructIdProblemInjector.GetVariable("ValidationSamplesEnd").Value).Data = parser.ValidationSamplesEnd; 103 ((IntData)StructIdProblemInjector.GetVariable("TestSamplesStart").Value).Data = parser.TestSamplesStart; 104 ((IntData)StructIdProblemInjector.GetVariable("TestSamplesEnd").Value).Data = parser.TestSamplesEnd; 103 105 ((IntData)StructIdProblemInjector.GetVariable("TargetVariable").Value).Data = parser.TargetVariable; 104 106 Refresh();
Note: See TracChangeset
for help on using the changeset viewer.