13 #ifndef MLPACK_BINDINGS_CLI_END_PROGRAM_HPP 14 #define MLPACK_BINDINGS_CLI_END_PROGRAM_HPP 32 std::map<std::string, util::ParamData>& parameters =
IO::Parameters();
33 for (
auto& it : parameters)
42 Log::Info << std::endl <<
"Execution parameters:" << std::endl;
45 for (
auto& it : parameters)
52 NULL, (
void*) &cliName);
55 std::string printableParam;
57 NULL, (
void*) &printableParam);
61 Log::Info <<
"Program timers:" << std::endl;
72 std::unordered_map<void*, util::ParamData*> memoryAddresses;
73 for (
auto& it : parameters)
79 NULL, (
void*) &result);
80 if (result != NULL && memoryAddresses.count(result) == 0)
81 memoryAddresses[result] = &data;
85 std::unordered_map<void*, util::ParamData*>::const_iterator it2;
86 it2 = memoryAddresses.begin();
87 while (it2 != memoryAddresses.end())
std::string tname
Type information of this parameter.
Definition: param_data.hpp:61
Timers timer
Holds the timer objects.
Definition: io.hpp:329
std::map< std::string, std::chrono::microseconds > GetAllTimers()
Returns a copy of all the timers used via this interface.
Definition: timers.cpp:75
static bool HasParam(const std::string &identifier)
See if the specified flag was found while parsing.
Definition: io.cpp:85
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
bool input
True if this option is an input option (otherwise, it is output).
Definition: param_data.hpp:73
static IO & GetSingleton()
Retrieve the singleton.
Definition: io.cpp:147
void StopAllTimers()
Stop all timers.
Definition: timers.cpp:160
This structure holds all of the information about a single parameter, including its value (which is s...
Definition: param_data.hpp:52
void EndProgram()
Handle command-line program termination.
Definition: end_program.hpp:26
static std::map< std::string, util::ParamData > & Parameters()
Return a modifiable list of parameters that IO knows about.
Definition: io.cpp:154
static MLPACK_EXPORT util::PrefixedOutStream Info
Prints informational messages if –verbose is specified, prefixed with [INFO ].
Definition: log.hpp:84
void PrintTimer(const std::string &timerName)
Prints the specified timer.
Definition: timers.cpp:100