Go to the documentation of this file.
13 #ifndef MLPACK_BINDINGS_CLI_ADD_TO_PO_HPP
14 #define MLPACK_BINDINGS_CLI_ADD_TO_PO_HPP
17 #include <boost/program_options.hpp>
33 void AddToPO(
const std::string& boostName,
34 const std::string& descr,
35 boost::program_options::options_description& desc,
37 const typename boost::disable_if<std::is_same<T, bool>>::type* = 0)
39 desc.add_options()(boostName.c_str(), boost::program_options::value<T>(),
52 void AddToPO(
const std::string& boostName,
53 const std::string& descr,
54 boost::program_options::options_description& desc,
56 const typename boost::disable_if<std::is_same<T, bool>>::type* = 0)
58 desc.add_options()(boostName.c_str(),
59 boost::program_options::value<T>()->multitoken(), descr.c_str());
70 void AddToPO(
const std::string& boostName,
71 const std::string& descr,
72 boost::program_options::options_description& desc,
74 const typename boost::enable_if<std::is_same<T, bool>>::type* = 0)
76 desc.add_options()(boostName.c_str(), descr.c_str());
93 boost::program_options::options_description* desc =
94 (boost::program_options::options_description*) output;
97 const std::string mappedName =
98 MapParameterName<typename std::remove_pointer<T>::type>(d.
name);
99 std::string boostName = (d.
alias !=
'\0') ? mappedName +
"," +
100 std::string(1, d.
alias) : mappedName;
104 AddToPO<typename ParameterType<typename std::remove_pointer<T>::type>::type>(
105 boostName, d.
desc, *desc);
f is the set of leaves in the subtree rooted at f $t f For the purposes of density estimation
format
Define the formats we can read through boost::serialization.
bool Save(const std::string &filename, const arma::Mat< eT > &matrix, const bool fatal=false, bool transpose=true)
Saves a matrix to file, guessing the filetype from the extension.
Artificial Neural Network.
Set the serialization version of the adaboost class.
f is the set of leaves in the subtree rooted at f $t f For the purposes of density there is a different form of we penalize the sum of the inverse of the volumes of the leaves With this very small volume nodes are discouraged unless the data actually warrants it Thus
This structure holds all of the information about a single parameter, including its value (which is s...
f f $V(t)\f$ is the volume of the node \f $t\f$ and \f$\tilde
std::string desc
Description of this parameter, if any.
bool Load(const std::string &filename, arma::Mat< eT > &matrix, const bool fatal=false, const bool transpose=true)
Loads a matrix from file, guessing the filetype from the extension.
Metaprogramming structure for vector detection.
std::string name
Name of this parameter.
f is the set of leaves in the subtree rooted at f $t f For the purposes of density there is a different form of regularization
BaseLayer< ActivationFunction, InputDataType, OutputDataType > SigmoidLayer
Standard Sigmoid-Layer using the logistic activation function.
set(SOURCES add_to_po.hpp cli_option.hpp default_param.hpp default_param_impl.hpp delete_allocated_memory.hpp end_program.hpp get_allocated_memory.hpp get_param.hpp get_raw_param.hpp get_printable_param.hpp get_printable_param_impl.hpp get_printable_param_name.hpp get_printable_param_name_impl.hpp get_printable_param_value.hpp get_printable_param_value_impl.hpp map_parameter_name.hpp output_param.hpp output_param_impl.hpp parameter_type.hpp parse_command_line.hpp print_doc_functions.hpp print_doc_functions_impl.hpp print_help.hpp print_help.cpp print_type_doc.hpp print_type_doc_impl.hpp set_param.hpp string_type_param.hpp string_type_param_impl.hpp) set(DIR_SRCS) foreach(file $
void AddToPO(const std::string &boostName, const std::string &descr, boost::program_options::options_description &desc, const typename boost::disable_if< util::IsStdVector< T >>::type *=0, const typename boost::disable_if< std::is_same< T, bool >>::type *=0)
Add a non-vector option to boost::program_options.
this option is not available in DET right now
char alias
Alias for this parameter.
This is a template class that can provide information about various layers.
see subsection cli_alt_reg_tut Alternate DET regularization The usual regularized error f $R_ alpha(t)\f$ of a node \f $t\f$ is given by