public XorDataSetGenerator()
 {
     InputDimension  = 2;
     OutputDimension = 1;
     LossTraining    = new LossSumOfSquares();
     LossReporting   = new LossSumOfSquares();
     Training        = GetTrainingData();
     Validation      = GetTrainingData();
     Testing         = GetTrainingData();
 }
예제 #2
0
 public CustomDataSet(Config config)
 {
     Training        = CreateSequences(config.RnnTrainXFile, config.RnnTrainYFile);
     Validation      = CreateSequences(config.RnnValidXFile, config.RnnValidYFile);
     Testing         = CreateSequences(config.RnnTestXFile, config.RnnTestYFile);
     InputDimension  = Training[0].Steps[0].Input.Rows;
     OutputDimension = Training[0].Steps[0].TargetOutput.Rows;
     LossTraining    = new LossSumOfSquares();
     LossReporting   = new LossSumOfSquares();
 }