13 #ifndef MLPACK_CORE_UTIL_IO_HPP 14 #define MLPACK_CORE_UTIL_IO_HPP 21 #include <boost/any.hpp> 197 const std::string& name,
207 const std::string& name);
216 const std::string& shortDescription);
225 const std::string& bindingName,
226 const std::function<std::string()>& longDescription);
234 static void AddExample(
const std::string& bindingName,
235 const std::function<std::string()>& example);
244 static void AddSeeAlso(
const std::string& bindingName,
245 const std::string& description,
246 const std::string& link);
277 std::map<std::string, std::map<char, std::string>> aliases;
279 std::map<std::string, std::map<std::string, util::ParamData>> parameters;
282 typedef std::map<std::string, std::map<std::string,
284 FunctionMapType functionMap;
289 std::map<std::string, util::BindingDetails> docs;
305 IO& operator=(
const IO& other);
Linear algebra utility functions, generally performed on matrices or vectors.
static util::Params Parameters(const std::string &bindingName)
Return a new Params object initialized with all the parameters of the binding bindingName.
The core includes that mlpack expects; standard C++ includes and Armadillo.
static void AddExample(const std::string &bindingName, const std::function< std::string()> &example)
Add an example for a binding.
This structure holds all of the information about a single parameter, including its value (which is s...
Parses the command line for parameters and holds user-specified parameters.
static IO & GetSingleton()
Retrieve the singleton.
The timer class provides a way for mlpack methods to be timed.
static void AddFunction(const std::string &type, const std::string &name, void(*func)(util::ParamData &, const void *, void *))
Add a function to the function map.
static void AddParameter(const std::string &bindingName, util::ParamData &&d)
Adds a parameter to the hierarchy; use the PARAM_*() macros instead of this (i.e. ...
static util::Timers & GetTimers()
Retrieve the global Timers object.
static void AddSeeAlso(const std::string &bindingName, const std::string &description, const std::string &link)
Add a SeeAlso for a binding.
The Params class holds all information about the parameters passed to a specific binding.
static void AddBindingName(const std::string &bindingName, const std::string &name)
Add a user-friendly name for a binding.
static void AddLongDescription(const std::string &bindingName, const std::function< std::string()> &longDescription)
Add a long description for a binding.
static void AddShortDescription(const std::string &bindingName, const std::string &shortDescription)
Add a short description for a binding.