37 bool isEof(
void) {
return _trainingDataFile.eof(); }
70 std::ifstream _trainingDataFile;
Manages reading and parsing of training data for neural network training.
Definition: TrainingData.hpp:23
void getTopology(std::vector< unsigned > &topology)
Reads the network topology from the training data file.
Definition: TrainingData.cpp:23
bool isEof(void)
Checks if the end of the training data file has been reached.
Definition: TrainingData.hpp:37
unsigned getNextInputs(std::vector< double > &inputVals)
Reads the next set of input values from the training data file.
Definition: TrainingData.cpp:72
unsigned getTargetOutputs(std::vector< double > &targetOutputsVals)
Reads the next set of target output values from the training data file.
Definition: TrainingData.cpp:97
TrainingData(const std::string filename)
Constructs a TrainingData object and opens the specified training data file.
Definition: TrainingData.cpp:59