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