AutoPas  3.0.0
Loading...
Searching...
No Matches
PredictionLogger.h
Go to the documentation of this file.
1
7#pragma once
8
9#include <spdlog/async.h>
10
12
13namespace autopas {
14
24 public:
29 explicit PredictionLogger(const std::string &outputSuffix = "");
30
35
42 void logAllPredictions(const std::unordered_map<Configuration, long, ConfigHash> &predictions,
43 long predictionErrorValue, size_t tuningPhaseCounter) const;
44
45 private:
46 std::string _loggerName;
47};
48
49} // namespace autopas
Helper to log prediction data of PredictiveTuning to a csv file for easier analysis.
Definition: PredictionLogger.h:23
~PredictionLogger()
Destructor drops the logger from the spd registry.
Definition: PredictionLogger.cpp:37
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.
Definition: PredictionLogger.cpp:43
This is the main namespace of AutoPas.
Definition: AutoPasDecl.h:32