Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/10/08 23:02:49 (16 years ago)
Author:
gkronber
Message:

implemented #245 (StructIdProblemInjector should inject a list of allowed features)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.DataAnalysis/DatasetParser.cs

    r406 r487  
    3939    private const string TESTSAMPLESSTART = "TESTSAMPLESSTART";
    4040    private const string TESTSAMPLESEND = "TESTSAMPLESEND";
     41    private const string NONINPUTVARIABLES = "NONINPUTVARIABLES";
    4142    private Tokenizer tokenizer;
    4243    private Dictionary<string, List<Token>> metadata;
     
    156157          return metadata[TESTSAMPLESEND][0].intValue;
    157158        } 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;
    158171      }
    159172    }
     
    359372
    360373    private void ParseMetaData(bool strict) {
    361       while(tokenizer.Peek().type==TokenTypeEnum.String) {
     374      while(tokenizer.Peek().type == TokenTypeEnum.String) {
    362375        Token nameToken = tokenizer.Next();
    363376        if(nameToken.type != TokenTypeEnum.String)
Note: See TracChangeset for help on using the changeset viewer.