13 #ifndef MLPACK_BINDINGS_CLI_END_PROGRAM_HPP 14 #define MLPACK_BINDINGS_CLI_END_PROGRAM_HPP 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
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
::const_iterator it2; 86 it2 = memoryAddresses.begin();
87 while (it2 != memoryAddresses.end())
void EndProgram()
Handle command-line program termination.
std::map< std::string, std::chrono::microseconds > GetAllTimers()
Returns a copy of all the timers used via this interface.
void StopAllTimers()
Stop all timers.
Linear algebra utility functions, generally performed on matrices or vectors.
void PrintTimer(const std::string &timerName)
Prints the specified timer.
bool input
True if this option is an input option (otherwise, it is output).
static MLPACK_EXPORT util::PrefixedOutStream Info
Prints informational messages if –verbose is specified, prefixed with [INFO ].
This structure holds all of the information about a single parameter, including its value (which is s...
static IO & GetSingleton()
Retrieve the singleton.
std::string tname
Type information of this parameter.
static bool HasParam(const std::string &identifier)
See if the specified flag was found while parsing.
Timers timer
Holds the timer objects.
FunctionMapType functionMap
static std::map< std::string, util::ParamData > & Parameters()
Return a modifiable list of parameters that IO knows about.