Free cookie consent management tool by TermsFeed Policy Generator

Changeset 397


Ignore:
Timestamp:
07/29/08 11:37:13 (16 years ago)
Author:
gkronber
Message:

fixed #206

Location:
trunk/sources
Files:
3 edited

Legend:

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

    r363 r397  
    3737    private const string VALIDATIONSAMPLESSTART = "VALIDATIONSAMPLESSTART";
    3838    private const string VALIDATIONSAMPLESEND = "VALIDATIONSAMPLESEND";
     39    private const string TESTSAMPLESSTART = "TESTSAMPLESSTART";
     40    private const string TESTSAMPLESEND = "TESTSAMPLESEND";
    3941    private Tokenizer tokenizer;
    4042    private Dictionary<string, List<Token>> metadata;
     
    138140        if(metadata.ContainsKey(VALIDATIONSAMPLESEND)) {
    139141          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;
    140157        } else return rows;
    141158      }
  • trunk/sources/HeuristicLab.StructureIdentification/StructIdProblemInjector.cs

    r363 r397  
    4949      AddVariableInfo(new VariableInfo("ValidationSamplesEnd", "ValidationSamplesEnd", typeof(IntData), VariableKind.New));
    5050      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()));
    5155    }
    5256
     
    6266      scope.AddVariable(new Variable(scope.TranslateName("ValidationSamplesStart"), (IItem)GetVariable("ValidationSamplesStart").Value.Clone()));
    6367      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()));
    6470      return null;
    6571    }
  • trunk/sources/HeuristicLab.StructureIdentification/StructIdProblemInjectorView.cs

    r366 r397  
    101101          ((IntData)StructIdProblemInjector.GetVariable("ValidationSamplesStart").Value).Data = parser.ValidationSamplesStart;
    102102          ((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;
    103105          ((IntData)StructIdProblemInjector.GetVariable("TargetVariable").Value).Data = parser.TargetVariable;
    104106          Refresh();
Note: See TracChangeset for help on using the changeset viewer.