Changeset 487 for trunk/sources/HeuristicLab.DataAnalysis
- Timestamp:
- 08/10/08 23:02:49 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DataAnalysis/DatasetParser.cs
r406 r487 39 39 private const string TESTSAMPLESSTART = "TESTSAMPLESSTART"; 40 40 private const string TESTSAMPLESEND = "TESTSAMPLESEND"; 41 private const string NONINPUTVARIABLES = "NONINPUTVARIABLES"; 41 42 private Tokenizer tokenizer; 42 43 private Dictionary<string, List<Token>> metadata; … … 156 157 return metadata[TESTSAMPLESEND][0].intValue; 157 158 } else return rows; 159 } 160 } 161 162 public List<int> NonInputVariables { 163 get { 164 List<int> disallowedVariables = new List<int>(); 165 if(metadata.ContainsKey(NONINPUTVARIABLES)) { 166 foreach(Token t in metadata[NONINPUTVARIABLES]) { 167 disallowedVariables.Add(t.intValue); 168 } 169 } 170 return disallowedVariables; 158 171 } 159 172 } … … 359 372 360 373 private void ParseMetaData(bool strict) { 361 while(tokenizer.Peek().type ==TokenTypeEnum.String) {374 while(tokenizer.Peek().type == TokenTypeEnum.String) { 362 375 Token nameToken = tokenizer.Next(); 363 376 if(nameToken.type != TokenTypeEnum.String)
Note: See TracChangeset
for help on using the changeset viewer.