AIMA.Core.Learning.Neural.NNDataSet.createExamples C# (CSharp) Method

createExamples() private method

private createExamples ( ) : void
return void
        private void createExamples() {
		dataset = new List<NNExample>();
		foreach (List<Double> dataLine in nds) {
			List<Double> input = new List<Double>();
			List<Double> target = new List<Double>();
			for (int i = 0; i < dataLine.Count; i++) {
				if (targetColumnNumbers.Contains(i)) {
					target.Add(dataLine[i]);
				} else {
					input.Add(dataLine[i]);
				}
			}
			dataset.Add(new NNExample(input, target));
		}
		refreshDataset();// to populate the preentlyProcessed dataset
	}