diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index bce60ecf35677453d30c534d17054fdc7f470442..326e1d42b3b9b92c72610f2866116bb774f28fa5 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -53,13 +53,14 @@ if ("${BUILD_LIB}" STREQUAL "yes") NetConnection/ConnectionFunctionIdentity.cpp LearningMethods/ParticleSwarm.cpp LearningMethods/GradientDescent.cpp + LearningMethods/GradientDescentBB.cpp DataSet/DataSet.cpp ErrorFunction/ErrorFunctions.cpp Solvers/DESolver.cpp CSVReader/CSVReader.cpp CrossValidator/CrossValidator.cpp NormalizationStrategy/NormalizationStrategy.cpp - ) + LearningMethods/GradientDescentSingleItem.cpp LearningMethods/GradientDescentSingleItem.h LearningMethods/LearningSequence.cpp LearningMethods/LearningSequence.h) # FileSystem C++ library - has to be linked manually in GCC-8 set(CXX_FILESYSTEM_LIB "") diff --git a/src/message.h b/src/message.h index aafadbd11170ed4eb15c180ad6db18a43deeb699..7fcb06f5e5bd25f33ce8d4ab9d5a75f93d761936 100644 --- a/src/message.h +++ b/src/message.h @@ -11,13 +11,13 @@ #define COL_WIDTH 20 #define R_ALIGN std::setw(COL_WIDTH) << std::right -#define COUT_INFO(inp) std::cout << std::flush << "INFO: " << inp << std::flush +#define COUT_INFO(inp) std::cout << std::flush << std::fixed << std::setprecision(12) << "INFO: " << inp << std::flush #ifdef L4N_DEBUG -#define COUT_DEBUG(inp) assert(std::cerr << std::flush << std::fixed << std::setprecision(6) << "DEBUG: " << inp << std::flush) +#define COUT_DEBUG(inp) assert(std::cerr << std::flush << std::fixed << std::setprecision(12) << "DEBUG: " << inp << std::flush) #define WRITE_TO_OFS_DEBUG(ofs, msg) { if(ofs && ofs->is_open())\ - *ofs << std::fixed << std::setprecision(6) << "DEBUG: " << msg;\ + *ofs << std::fixed << std::setprecision(12) << "DEBUG: " << msg;\ } #else #define COUT_DEBUG(inp)