Helper to log results of the tuning process to a csv file for easier analysis. More...
#include <TuningDataLogger.h>
Public Member Functions | |
TuningDataLogger (size_t numSamples, const std::string &outputSuffix="") | |
Constructor initializes the logger and sets the output file name. | |
~TuningDataLogger () | |
Destructor drops the logger from the spd registry. | |
void | logTuningData (const autopas::Configuration &configuration, const std::vector< long > &samplesRebuildingNeighborLists, const std::vector< long > &samplesNotRebuildingNeighborLists, size_t iteration, long reducedValue, long smoothedVale, double meanRebuildFrequency) const |
Log the result of a tuning phase. | |
Helper to log results of the tuning process to a csv file for easier analysis.
It uses an asynchronous spd logger to write a csv file named "AutoPas_iterationPerformance_<dateStamp>.csv".
By default logging the data is disabled. It can be enabled by setting the cmake variable AUTOPAS_LOG_TUNINGDATA to ON.
|
explicit |
Constructor initializes the logger and sets the output file name.
numSamples | Number of samples that are taken per configuration. |
outputSuffix | Suffix for all output files produced by this class. |
void autopas::TuningDataLogger::logTuningData | ( | const autopas::Configuration & | configuration, |
const std::vector< long > & | samplesRebuildingNeighborLists, | ||
const std::vector< long > & | samplesNotRebuildingNeighborLists, | ||
size_t | iteration, | ||
long | reducedValue, | ||
long | smoothedVale, | ||
double | meanRebuildFrequency | ||
) | const |
Log the result of a tuning phase.
configuration | |
samplesRebuildingNeighborLists | |
samplesNotRebuildingNeighborLists | |
iteration | |
reducedValue | |
smoothedVale | |
meanRebuildFrequency |