bool NeuralNetwork::saveToFile(std::string filename) const { std::ofstream file(filename, std::ios::out | std::ios::trunc); if (!file.is_open()) { Logger::writeLine("NeuralNetwork::saveToFile(): Unable to open file: " + filename); return false; } file << getStringRepresentation(); file.close(); return true; }
// if del is true, then the returned QoreString * should be deleted, if false, then it must not be QoreString *QoreNumberNode::getAsString(bool& del, int foff, ExceptionSink* xsink) const { return getStringRepresentation(del); }
int QoreNumberNode::getAsString(QoreString& str, int foff, ExceptionSink* xsink) const { getStringRepresentation(str); return 0; }