Helper to log prediction data of PredictiveTuning to a csv file for easier analysis. More...
#include <PredictionLogger.h>
Public Member Functions | |
PredictionLogger (const std::string &outputSuffix="") | |
Constructor initializes the logger and sets the output file name. | |
~PredictionLogger () | |
Destructor drops the logger from the spd registry. | |
void | logAllPredictions (const std::unordered_map< Configuration, long, ConfigHash > &predictions, long predictionErrorValue, size_t tuningPhaseCounter) const |
Print all predictions of the given set of configurations to the logger. | |
Helper to log prediction data of PredictiveTuning to a csv file for easier analysis.
It uses an asynchronous spd logger to write a csv file named "AutoPas_predictions_<dateStamp>.csv".
By default logging the data is disabled. It can be enabled by setting the cmake variable AUTOPAS_LOG_PREDICTIONS to ON.
|
explicit |
Constructor initializes the logger and sets the output file name.
outputSuffix | Suffix for all output files produced by this class. |
void autopas::PredictionLogger::logAllPredictions | ( | const std::unordered_map< Configuration, long, ConfigHash > & | predictions, |
long | predictionErrorValue, | ||
size_t | tuningPhaseCounter | ||
) | const |
Print all predictions of the given set of configurations to the logger.
predictions | |
predictionErrorValue | |
tuningPhaseCounter |