Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/23/08 13:13:06 (17 years ago)
Author:
gkronber
Message:

changed StructIdProblemInjector to inject only the dataset and the target-variable (removed max-tree-height and max-tree-size variable).
also removed the requirement that TrainingSamplesStart and TrainingSamplesEnd have to be specified in the import file. If they are not defined explicitly we just use the whole dataset for training.

File:
1 edited

Legend:

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

    r2 r172  
    8989    public int TrainingSamplesStart {
    9090      get {
    91         return metadata["TRAININGSAMPLESSTART"][0].intValue;
     91        if(!metadata.ContainsKey("TRAININGSAMPLESTART")) return 0;
     92        else return metadata["TRAININGSAMPLESSTART"][0].intValue;
    9293      }
    9394    }
     
    9596    public int TrainingSamplesEnd {
    9697      get {
    97         return metadata["TRAININGSAMPLESEND"][0].intValue;
     98        if(!metadata.ContainsKey("TRAININGSAMPLEEND")) return rows;
     99        else return metadata["TRAININGSAMPLESEND"][0].intValue;
    98100      }
    99101    }
Note: See TracChangeset for help on using the changeset viewer.