Esempio n. 1
0
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;
}
Esempio n. 2
0
// 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);
}
Esempio n. 3
0
int QoreNumberNode::getAsString(QoreString& str, int foff, ExceptionSink* xsink) const {
   getStringRepresentation(str);
   return 0;
}