Classes | |
| class | JuliaOption |
| The Julia option class. More... | |
Functions | |
template < typename T > | |
| void | DefaultParam (const util::ParamData &data, const void *, void *output) |
| Return the default value of an option. More... | |
template < typename T > | |
| std::string | DefaultParamImpl (const util::ParamData &data, const typename boost::disable_if< arma::is_arma_type< T >>::type *=0, const typename boost::disable_if< util::IsStdVector< T >>::type *=0, const typename boost::disable_if< data::HasSerialize< T >>::type *=0, const typename boost::disable_if< std::is_same< T, std::string >>::type *=0, const typename boost::disable_if< std::is_same< T, std::tuple< mlpack::data::DatasetInfo, arma::mat >>>::type *=0) |
| Return the default value of an option. More... | |
template < typename T > | |
| std::string | DefaultParamImpl (const util::ParamData &data, const typename boost::enable_if< util::IsStdVector< T >>::type *=0) |
| Return the default value of a vector option. More... | |
template < typename T > | |
| std::string | DefaultParamImpl (const util::ParamData &data, const typename boost::enable_if< std::is_same< T, std::string >>::type *=0) |
| Return the default value of a string option. More... | |
template < typename T > | |
| std::string | DefaultParamImpl (const util::ParamData &data, const typename boost::enable_if_c< arma::is_arma_type< T >::value||std::is_same< T, std::tuple< mlpack::data::DatasetInfo, arma::mat >>::value >::type *=0) |
| Return the default value of a matrix option, a tuple option, a serializable option, or a string option (this returns the default filename, or '' if the default is no file). More... | |
template < typename T > | |
| std::string | DefaultParamImpl (const util::ParamData &data, const typename boost::disable_if< arma::is_arma_type< T >>::type *=0, const typename boost::enable_if< data::HasSerialize< T >>::type *=0) |
| Return the default value of a model option (this returns the default filename, or '' if the default is no file). More... | |
| std::string | GetBindingName (const std::string &bindingName) |
| Given the name of a binding, print its Julia name (this just returns the binding name). More... | |
template < typename T > | |
| std::string | GetJuliaType (const typename std::enable_if<!util::IsStdVector< T >::value >::type *=0, const typename std::enable_if<!arma::is_arma_type< T >::value >::type *=0, const typename std::enable_if<!std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type *=0, const typename std::enable_if<!data::HasSerialize< T >::value >::type *=0) |
template < typename T > | |
| std::string | GetJuliaType (const typename std::enable_if< util::IsStdVector< T >::value >::type *=0, const typename std::enable_if<!std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type *=0, const typename std::enable_if<!arma::is_arma_type< T >::value >::type *=0) |
template < typename T > | |
| std::string | GetJuliaType (const typename std::enable_if<!util::IsStdVector< T >::value >::type *=0, const typename std::enable_if<!std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type *=0, const typename std::enable_if< arma::is_arma_type< T >::value >::type *=0) |
template < typename T > | |
| std::string | GetJuliaType (const typename std::enable_if< std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type *=0) |
template < typename T > | |
| std::string | GetJuliaType (const typename std::enable_if<!util::IsStdVector< T >::value >::type *=0, const typename std::enable_if<!arma::is_arma_type< T >::value >::type *=0, const typename std::enable_if< data::HasSerialize< T >::value >::type *=0) |
template < > | |
| std::string | GetJuliaType< bool > (const typename std::enable_if<!util::IsStdVector< bool >::value >::type *, const typename std::enable_if<!arma::is_arma_type< bool >::value >::type *, const typename std::enable_if<!std::is_same< bool, std::tuple< data::DatasetInfo, arma::mat >>::value >::type *, const typename std::enable_if<!data::HasSerialize< bool >::value >::type *) |
template < > | |
| std::string | GetJuliaType< double > (const typename std::enable_if<!util::IsStdVector< double >::value >::type *, const typename std::enable_if<!arma::is_arma_type< double >::value >::type *, const typename std::enable_if<!std::is_same< double, std::tuple< data::DatasetInfo, arma::mat >>::value >::type *, const typename std::enable_if<!data::HasSerialize< double >::value >::type *) |
template < > | |
| std::string | GetJuliaType< int > (const typename std::enable_if<!util::IsStdVector< int >::value >::type *, const typename std::enable_if<!arma::is_arma_type< int >::value >::type *, const typename std::enable_if<!std::is_same< int, std::tuple< data::DatasetInfo, arma::mat >>::value >::type *, const typename std::enable_if<!data::HasSerialize< int >::value >::type *) |
template < > | |
| std::string | GetJuliaType< size_t > (const typename std::enable_if<!util::IsStdVector< size_t >::value >::type *, const typename std::enable_if<!arma::is_arma_type< size_t >::value >::type *, const typename std::enable_if<!std::is_same< size_t, std::tuple< data::DatasetInfo, arma::mat >>::value >::type *, const typename std::enable_if<!data::HasSerialize< size_t >::value >::type *) |
template < > | |
| std::string | GetJuliaType< std::string > (const typename std::enable_if< !util::IsStdVector< std::string >::value >::type *, const typename std::enable_if< !arma::is_arma_type< std::string >::value >::type *, const typename std::enable_if<!std::is_same< std::string, std::tuple< data::DatasetInfo, arma::mat >>::value >::type *, const typename std::enable_if< !data::HasSerialize< std::string >::value >::type *) |
template < typename T > | |
| void | GetParam (const util::ParamData &d, const void *, void *output) |
| All Julia binding types are exactly what is held in the ParamData, so no special handling is necessary. More... | |
template < typename T > | |
| std::string | GetPrintableParam (const util::ParamData &data, const typename boost::disable_if< arma::is_arma_type< T >>::type *=0, const typename boost::disable_if< util::IsStdVector< T >>::type *=0, const typename boost::disable_if< data::HasSerialize< T >>::type *=0, const typename boost::disable_if< std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>>::type *=0) |
| Print an option of a simple type. More... | |
template < typename T > | |
| std::string | GetPrintableParam (const util::ParamData &data, const typename boost::enable_if< util::IsStdVector< T >>::type *=0) |
| Print a vector option, with spaces between it. More... | |
template < typename T > | |
| std::string | GetPrintableParam (const util::ParamData &data, const typename boost::enable_if< arma::is_arma_type< T >>::type *=0) |
| Print a matrix option (this prints its size). More... | |
template < typename T > | |
| std::string | GetPrintableParam (const util::ParamData &data, const typename boost::disable_if< arma::is_arma_type< T >>::type *=0, const typename boost::enable_if< data::HasSerialize< T >>::type *=0) |
| Print a serializable class option (this prints the class name). More... | |
template < typename T > | |
| std::string | GetPrintableParam (const util::ParamData &data, const typename boost::enable_if< std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>>::type *=0) |
| Print a combination DatasetInfo/matrix parameter. More... | |
template < typename T > | |
| void | GetPrintableParam (const util::ParamData &data, const void *, void *output) |
| Print an option into a std::string. More... | |
template < typename T > | |
| std::string | GetPrintableType (const util::ParamData &data, const typename boost::disable_if< arma::is_arma_type< T >>::type *=0, const typename boost::disable_if< util::IsStdVector< T >>::type *=0, const typename boost::disable_if< data::HasSerialize< T >>::type *=0, const typename boost::disable_if< std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>>::type *=0) |
| Return a string representing the command-line type of an option. More... | |
template < typename T > | |
| std::string | GetPrintableType (const util::ParamData &data, const typename std::enable_if< util::IsStdVector< T >::value >::type *=0) |
| Return a string representing the command-line type of a vector. More... | |
template < typename T > | |
| std::string | GetPrintableType (const util::ParamData &data, const typename std::enable_if< arma::is_arma_type< T >::value >::type *=0) |
| Return a string representing the command-line type of a matrix option. More... | |
template < typename T > | |
| std::string | GetPrintableType (const util::ParamData &data, const typename std::enable_if< std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type *=0) |
| Return a string representing the command-line type of a matrix tuple option. More... | |
template < typename T > | |
| std::string | GetPrintableType (const util::ParamData &data, const typename boost::disable_if< arma::is_arma_type< T >>::type *=0, const typename boost::enable_if< data::HasSerialize< T >>::type *=0) |
| Return a string representing the command-line type of a model. More... | |
template < typename T > | |
| void | GetPrintableType (const util::ParamData &data, const void *, void *output) |
| Print the command-line type of an option into a string. More... | |
| bool | IgnoreCheck (const std::string ¶mName) |
| Print whether or not we should ignore a check on the given parameter. More... | |
| bool | IgnoreCheck (const std::vector< std::string > &constraints) |
| Print whether or not we should ignore a check on the given set of constraints. More... | |
| bool | IgnoreCheck (const std::vector< std::pair< std::string, bool >> &constraints, const std::string ¶mName) |
| Print whether or not we should ignore a check on the given set of constraints. More... | |
| std::string | ParamString (const std::string ¶mName) |
| Given the parameter name, determine what it would actually be when passed to the command line. More... | |
| std::string | PrintDataset (const std::string &dataset) |
| Print a dataset type parameter. More... | |
| std::string | PrintDefault (const std::string ¶mName) |
| Given a parameter name, print its corresponding default value. More... | |
template < typename T > | |
| void | PrintDoc (const util::ParamData &d, const void *, void *output) |
| std::string | PrintImport (const std::string &bindingName) |
| Print any imports for Julia. More... | |
| std::string | PrintInputOptions () |
| template<typename T , typename... Args> | |
| std::string | PrintInputOptions (const std::string ¶mName, const T &value, Args... args) |
| Print an input option. More... | |
template < typename T > | |
| void | PrintInputParam (const util::ParamData &d, const void *, void *) |
| Print the declaration of an input parameter as part of a line in a Julia function definition. More... | |
template < typename T > | |
| void | PrintInputProcessing (const util::ParamData &d, const std::string &functionName, const typename std::enable_if<!data::HasSerialize< T >::value >::type *=0, const typename std::enable_if<!std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type *=0) |
| Print the input processing (basically calling CLI::GetParam<>()) for a non-serializable type. More... | |
template < typename T > | |
| void | PrintInputProcessing (const util::ParamData &d, const std::string &functionName, const typename std::enable_if< arma::is_arma_type< T >::value >::type *=0, const typename std::enable_if<!std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type *=0) |
| Print the input processing for an Armadillo type. More... | |
template < typename T > | |
| void | PrintInputProcessing (const util::ParamData &d, const std::string &functionName, const typename std::enable_if<!arma::is_arma_type< T >::value >::type *=0, const typename std::enable_if< data::HasSerialize< T >::value >::type *=0, const typename std::enable_if<!std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type *=0) |
| Print the input processing for a serializable type. More... | |
template < typename T > | |
| void | PrintInputProcessing (const util::ParamData &d, const std::string &functionName, const typename std::enable_if< std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type *=0) |
| Print the input processing (basically calling CLI::GetParam<>()) for a matrix with DatasetInfo type. More... | |
template < typename T > | |
| void | PrintInputProcessing (const util::ParamData &d, const void *input, void *) |
| Print the input processing (basically calling CLI::GetParam<>()) for a type. More... | |
| void | PrintJL (const util::ProgramDoc &programInfo, const std::string &functionName, const std::string &mlpackJuliaLibSuffix) |
| Print the code for a .jl binding for an mlpack program to stdout. More... | |
| std::string | PrintModel (const std::string &model) |
| Print a model type parameter. More... | |
| std::string | PrintOutputOptionInfo () |
| Print any special information about output options. More... | |
| std::string | PrintOutputOptions () |
| template<typename T , typename... Args> | |
| std::string | PrintOutputOptions (const std::string ¶mName, const T &value, Args... args) |
template < typename T > | |
| void | PrintOutputProcessing (const util::ParamData &d, const std::string &functionName, const typename std::enable_if<!data::HasSerialize< T >::value >::type *=0, const typename std::enable_if<!std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type *=0) |
| Print the output processing (basically calling CLI::GetParam<>()) for a non-serializable type. More... | |
template < typename T > | |
| void | PrintOutputProcessing (const util::ParamData &d, const std::string &functionName, const typename std::enable_if< arma::is_arma_type< T >::value >::type *=0, const typename std::enable_if<!std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type *=0) |
| Print the output processing for an Armadillo type. More... | |
template < typename T > | |
| void | PrintOutputProcessing (const util::ParamData &d, const std::string &functionName, const typename std::enable_if<!arma::is_arma_type< T >::value >::type *=0, const typename std::enable_if< data::HasSerialize< T >::value >::type *=0, const typename std::enable_if<!std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type *=0) |
| Print the output processing for a serializable type. More... | |
template < typename T > | |
| void | PrintOutputProcessing (const util::ParamData &d, const std::string &functionName, const typename std::enable_if< std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type *=0) |
| Print the output processing for a mat/DatasetInfo tuple type. More... | |
template < typename T > | |
| void | PrintOutputProcessing (const util::ParamData &d, const void *input, void *) |
| Print the output processing (basically calling CLI::GetParam<>()) for a type. More... | |
template < typename T > | |
| void | PrintParamDefn (const util::ParamData &, const std::string &, const typename std::enable_if<!arma::is_arma_type< T >::value >::type *=0, const typename std::enable_if<!data::HasSerialize< T >::value >::type *=0) |
| If the type is not serializable, print nothing. More... | |
template < typename T > | |
| void | PrintParamDefn (const util::ParamData &, const std::string &, const typename std::enable_if< arma::is_arma_type< T >::value >::type *=0) |
| Matrices are serializable but here we also print nothing. More... | |
template < typename T > | |
| void | PrintParamDefn (const util::ParamData &d, const std::string &programName, const typename std::enable_if<!arma::is_arma_type< T >::value >::type *=0, const typename std::enable_if< data::HasSerialize< T >::value >::type *=0) |
| For non-matrix serializable types we need to print something. More... | |
template < typename T > | |
| void | PrintParamDefn (const util::ParamData &d, const void *input, void *) |
| If the type is serializable, print the definition of a special utility function to set a CLI parameter of that type to stdout. More... | |
| std::string | PrintType (const util::ParamData ¶m) |
| Print the type of a parameter that a user would specify from Julia. More... | |
template < typename T > | |
| std::string | PrintTypeDoc (const util::ParamData &data, const typename boost::disable_if< arma::is_arma_type< T >>::type *=0, const typename boost::disable_if< util::IsStdVector< T >>::type *=0, const typename boost::disable_if< data::HasSerialize< T >>::type *=0, const typename boost::disable_if< std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>>::type *=0) |
| Return a string representing the command-line type of an option. More... | |
template < typename T > | |
| std::string | PrintTypeDoc (const util::ParamData &data, const typename std::enable_if< util::IsStdVector< T >::value >::type *=0) |
| Return a string representing the command-line type of a vector. More... | |
template < typename T > | |
| std::string | PrintTypeDoc (const util::ParamData &data, const typename std::enable_if< arma::is_arma_type< T >::value >::type *=0) |
| Return a string representing the command-line type of a matrix option. More... | |
template < typename T > | |
| std::string | PrintTypeDoc (const util::ParamData &data, const typename std::enable_if< std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type *=0) |
| Return a string representing the command-line type of a matrix tuple option. More... | |
template < typename T > | |
| std::string | PrintTypeDoc (const util::ParamData &data, const typename boost::disable_if< arma::is_arma_type< T >>::type *=0, const typename boost::enable_if< data::HasSerialize< T >>::type *=0) |
| Return a string representing the command-line type of a model. More... | |
template < typename T > | |
| void | PrintTypeDoc (const util::ParamData &data, const void *, void *output) |
| Print the command-line type of an option into a string. More... | |
| std::string | PrintTypeDocs () |
| Print documentation for each of the types. More... | |
template < typename T > | |
| std::string | PrintValue (const T &value, bool quotes) |
| Given a parameter type, print the corresponding value. More... | |
template < > | |
| std::string | PrintValue (const bool &value, bool quotes) |
| template<typename... Args> | |
| std::string | ProgramCall (const std::string &programName, Args... args) |
| Given a name of a binding and a variable number of arguments (and their contents), print the corresponding function call. More... | |
| std::string | StripType (std::string cppType) |
| Given a C++ type name, turn it into something that has no special characters that can simply be printed. More... | |
Variables | |
| std::string | programName |
| void mlpack::bindings::julia::DefaultParam | ( | const util::ParamData & | data, |
| const void * | , | ||
| void * | output | ||
| ) |
Return the default value of an option.
This is the function that will be placed into the CLI functionMap.
Definition at line 80 of file default_param.hpp.
| std::string mlpack::bindings::julia::DefaultParamImpl | ( | const util::ParamData & | data, |
| const typename boost::disable_if< arma::is_arma_type< T >>::type * | = 0, |
||
| const typename boost::disable_if< util::IsStdVector< T >>::type * | = 0, |
||
| const typename boost::disable_if< data::HasSerialize< T >>::type * | = 0, |
||
| const typename boost::disable_if< std::is_same< T, std::string >>::type * | = 0, |
||
| const typename boost::disable_if< std::is_same< T, std::tuple< mlpack::data::DatasetInfo, arma::mat >>>::type * | = 0 |
||
| ) |
Return the default value of an option.
This is for regular types.
| std::string mlpack::bindings::julia::DefaultParamImpl | ( | const util::ParamData & | data, |
| const typename boost::enable_if< util::IsStdVector< T >>::type * | = 0 |
||
| ) |
Return the default value of a vector option.
| std::string mlpack::bindings::julia::DefaultParamImpl | ( | const util::ParamData & | data, |
| const typename boost::enable_if< std::is_same< T, std::string >>::type * | = 0 |
||
| ) |
Return the default value of a string option.
| std::string mlpack::bindings::julia::DefaultParamImpl | ( | const util::ParamData & | data, |
| const typename boost::enable_if_c< arma::is_arma_type< T >::value||std::is_same< T, std::tuple< mlpack::data::DatasetInfo, arma::mat >>::value >::type * | = 0 |
||
| ) |
Return the default value of a matrix option, a tuple option, a serializable option, or a string option (this returns the default filename, or '' if the default is no file).
| std::string mlpack::bindings::julia::DefaultParamImpl | ( | const util::ParamData & | data, |
| const typename boost::disable_if< arma::is_arma_type< T >>::type * | = 0, |
||
| const typename boost::enable_if< data::HasSerialize< T >>::type * | = 0 |
||
| ) |
Return the default value of a model option (this returns the default filename, or '' if the default is no file).
|
inline |
Given the name of a binding, print its Julia name (this just returns the binding name).
|
inline |
Definition at line 17 of file get_julia_type.hpp.
|
inline |
Definition at line 87 of file get_julia_type.hpp.
|
inline |
Definition at line 97 of file get_julia_type.hpp.
|
inline |
Definition at line 114 of file get_julia_type.hpp.
|
inline |
Definition at line 123 of file get_julia_type.hpp.
|
inline |
Definition at line 28 of file get_julia_type.hpp.
|
inline |
Definition at line 61 of file get_julia_type.hpp.
|
inline |
Definition at line 39 of file get_julia_type.hpp.
|
inline |
Definition at line 50 of file get_julia_type.hpp.
|
inline |
Definition at line 73 of file get_julia_type.hpp.
| void mlpack::bindings::julia::GetParam | ( | const util::ParamData & | d, |
| const void * | , | ||
| void * | output | ||
| ) |
All Julia binding types are exactly what is held in the ParamData, so no special handling is necessary.
Definition at line 26 of file get_param.hpp.
References ParamData::value.
| std::string mlpack::bindings::julia::GetPrintableParam | ( | const util::ParamData & | data, |
| const typename boost::disable_if< arma::is_arma_type< T >>::type * | = 0, |
||
| const typename boost::disable_if< util::IsStdVector< T >>::type * | = 0, |
||
| const typename boost::disable_if< data::HasSerialize< T >>::type * | = 0, |
||
| const typename boost::disable_if< std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>>::type * | = 0 |
||
| ) |
Print an option of a simple type.
Print an option.
Definition at line 26 of file get_printable_param.hpp.
References ParamData::value.
| std::string mlpack::bindings::julia::GetPrintableParam | ( | const util::ParamData & | data, |
| const typename boost::enable_if< util::IsStdVector< T >>::type * | = 0 |
||
| ) |
Print a vector option, with spaces between it.
Definition at line 43 of file get_printable_param.hpp.
References ParamData::value.
| std::string mlpack::bindings::julia::GetPrintableParam | ( | const util::ParamData & | data, |
| const typename boost::enable_if< arma::is_arma_type< T >>::type * | = 0 |
||
| ) |
Print a matrix option (this prints its size).
Print a matrix option (this just prints the filename).
Definition at line 59 of file get_printable_param.hpp.
References ParamData::value.
| std::string mlpack::bindings::julia::GetPrintableParam | ( | const util::ParamData & | data, |
| const typename boost::disable_if< arma::is_arma_type< T >>::type * | = 0, |
||
| const typename boost::enable_if< data::HasSerialize< T >>::type * | = 0 |
||
| ) |
Print a serializable class option (this prints the class name).
Print a serializable class option (this just prints the filename).
Print a model option (this just prints the filename).
Definition at line 75 of file get_printable_param.hpp.
References ParamData::cppType, and ParamData::value.
| std::string mlpack::bindings::julia::GetPrintableParam | ( | const util::ParamData & | data, |
| const typename boost::enable_if< std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>>::type * | = 0 |
||
| ) |
Print a combination DatasetInfo/matrix parameter.
Print a mapped matrix option (this just prints the filename).
Definition at line 89 of file get_printable_param.hpp.
References ParamData::value.
| void mlpack::bindings::julia::GetPrintableParam | ( | const util::ParamData & | data, |
| const void * | , | ||
| void * | output | ||
| ) |
Print an option into a std::string.
This should print a short, one-line representation of the object. The string will be stored in the output pointer.
| data | Parameter data struct. |
| input | Unused parameter. |
| output | Output storage for the string. |
Definition at line 114 of file get_printable_param.hpp.
| std::string mlpack::bindings::julia::GetPrintableType | ( | const util::ParamData & | data, |
| const typename boost::disable_if< arma::is_arma_type< T >>::type * | = 0, |
||
| const typename boost::disable_if< util::IsStdVector< T >>::type * | = 0, |
||
| const typename boost::disable_if< data::HasSerialize< T >>::type * | = 0, |
||
| const typename boost::disable_if< std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>>::type * | = 0 |
||
| ) |
Return a string representing the command-line type of an option.
| std::string mlpack::bindings::julia::GetPrintableType | ( | const util::ParamData & | data, |
| const typename std::enable_if< util::IsStdVector< T >::value >::type * | = 0 |
||
| ) |
Return a string representing the command-line type of a vector.
| std::string mlpack::bindings::julia::GetPrintableType | ( | const util::ParamData & | data, |
| const typename std::enable_if< arma::is_arma_type< T >::value >::type * | = 0 |
||
| ) |
Return a string representing the command-line type of a matrix option.
| std::string mlpack::bindings::julia::GetPrintableType | ( | const util::ParamData & | data, |
| const typename std::enable_if< std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type * | = 0 |
||
| ) |
Return a string representing the command-line type of a matrix tuple option.
| std::string mlpack::bindings::julia::GetPrintableType | ( | const util::ParamData & | data, |
| const typename boost::disable_if< arma::is_arma_type< T >>::type * | = 0, |
||
| const typename boost::enable_if< data::HasSerialize< T >>::type * | = 0 |
||
| ) |
Return a string representing the command-line type of a model.
| void mlpack::bindings::julia::GetPrintableType | ( | const util::ParamData & | data, |
| const void * | , | ||
| void * | output | ||
| ) |
Print the command-line type of an option into a string.
Definition at line 65 of file get_printable_type.hpp.
|
inline |
Print whether or not we should ignore a check on the given parameter.
For Julia bindings, we ignore any checks on output parameters, so if paramName is an output parameter, this returns true.
|
inline |
Print whether or not we should ignore a check on the given set of constraints.
For Julia bindings, we ignore any checks on output parameters, so if any parameter is an output parameter, this returns true.
|
inline |
Print whether or not we should ignore a check on the given set of constraints.
For Julia bindings, we ignore any checks on output parameters, so if any constraint parameter or the main parameter are output parameters, this returns true.
|
inline |
Given the parameter name, determine what it would actually be when passed to the command line.
|
inline |
Print a dataset type parameter.
|
inline |
Given a parameter name, print its corresponding default value.
| void mlpack::bindings::julia::PrintDoc | ( | const util::ParamData & | d, |
| const void * | , | ||
| void * | output | ||
| ) |
Definition at line 15 of file print_doc.hpp.
References ParamData::cppType, ParamData::desc, if(), ParamData::name, ParamData::required, and ParamData::value.
|
inline |
Print any imports for Julia.
|
inline |
| std::string mlpack::bindings::julia::PrintInputOptions | ( | const std::string & | paramName, |
| const T & | value, | ||
| Args... | args | ||
| ) |
Print an input option.
This will throw an exception if the parameter does not exist in CLI. For a parameter 'x' with value '5', this will print something like x=5.
| void mlpack::bindings::julia::PrintInputParam | ( | const util::ParamData & | d, |
| const void * | , | ||
| void * | |||
| ) |
Print the declaration of an input parameter as part of a line in a Julia function definition.
This doesn't include any commas or anything.
Definition at line 22 of file print_input_param.hpp.
References if(), ParamData::name, and ParamData::required.
| void mlpack::bindings::julia::PrintInputProcessing | ( | const util::ParamData & | d, |
| const std::string & | functionName, | ||
| const typename std::enable_if<!data::HasSerialize< T >::value >::type * | = 0, |
||
| const typename std::enable_if<!std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type * | = 0 |
||
| ) |
Print the input processing (basically calling CLI::GetParam<>()) for a non-serializable type.
| void mlpack::bindings::julia::PrintInputProcessing | ( | const util::ParamData & | d, |
| const std::string & | functionName, | ||
| const typename std::enable_if< arma::is_arma_type< T >::value >::type * | = 0, |
||
| const typename std::enable_if<!std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type * | = 0 |
||
| ) |
Print the input processing for an Armadillo type.
| void mlpack::bindings::julia::PrintInputProcessing | ( | const util::ParamData & | d, |
| const std::string & | functionName, | ||
| const typename std::enable_if<!arma::is_arma_type< T >::value >::type * | = 0, |
||
| const typename std::enable_if< data::HasSerialize< T >::value >::type * | = 0, |
||
| const typename std::enable_if<!std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type * | = 0 |
||
| ) |
Print the input processing for a serializable type.
| void mlpack::bindings::julia::PrintInputProcessing | ( | const util::ParamData & | d, |
| const std::string & | functionName, | ||
| const typename std::enable_if< std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type * | = 0 |
||
| ) |
Print the input processing (basically calling CLI::GetParam<>()) for a matrix with DatasetInfo type.
| void mlpack::bindings::julia::PrintInputProcessing | ( | const util::ParamData & | d, |
| const void * | input, | ||
| void * | |||
| ) |
Print the input processing (basically calling CLI::GetParam<>()) for a type.
Definition at line 64 of file print_input_processing.hpp.
| void mlpack::bindings::julia::PrintJL | ( | const util::ProgramDoc & | programInfo, |
| const std::string & | functionName, | ||
| const std::string & | mlpackJuliaLibSuffix | ||
| ) |
Print the code for a .jl binding for an mlpack program to stdout.
|
inline |
Print a model type parameter.
|
inline |
Print any special information about output options.
|
inline |
| std::string mlpack::bindings::julia::PrintOutputOptions | ( | const std::string & | paramName, |
| const T & | value, | ||
| Args... | args | ||
| ) |
| void mlpack::bindings::julia::PrintOutputProcessing | ( | const util::ParamData & | d, |
| const std::string & | functionName, | ||
| const typename std::enable_if<!data::HasSerialize< T >::value >::type * | = 0, |
||
| const typename std::enable_if<!std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type * | = 0 |
||
| ) |
Print the output processing (basically calling CLI::GetParam<>()) for a non-serializable type.
| void mlpack::bindings::julia::PrintOutputProcessing | ( | const util::ParamData & | d, |
| const std::string & | functionName, | ||
| const typename std::enable_if< arma::is_arma_type< T >::value >::type * | = 0, |
||
| const typename std::enable_if<!std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type * | = 0 |
||
| ) |
Print the output processing for an Armadillo type.
| void mlpack::bindings::julia::PrintOutputProcessing | ( | const util::ParamData & | d, |
| const std::string & | functionName, | ||
| const typename std::enable_if<!arma::is_arma_type< T >::value >::type * | = 0, |
||
| const typename std::enable_if< data::HasSerialize< T >::value >::type * | = 0, |
||
| const typename std::enable_if<!std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type * | = 0 |
||
| ) |
Print the output processing for a serializable type.
| void mlpack::bindings::julia::PrintOutputProcessing | ( | const util::ParamData & | d, |
| const std::string & | functionName, | ||
| const typename std::enable_if< std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type * | = 0 |
||
| ) |
Print the output processing for a mat/DatasetInfo tuple type.
| void mlpack::bindings::julia::PrintOutputProcessing | ( | const util::ParamData & | d, |
| const void * | input, | ||
| void * | |||
| ) |
Print the output processing (basically calling CLI::GetParam<>()) for a type.
Definition at line 65 of file print_output_processing.hpp.
| void mlpack::bindings::julia::PrintParamDefn | ( | const util::ParamData & | , |
| const std::string & | , | ||
| const typename std::enable_if<!arma::is_arma_type< T >::value >::type * | = 0, |
||
| const typename std::enable_if<!data::HasSerialize< T >::value >::type * | = 0 |
||
| ) |
If the type is not serializable, print nothing.
Definition at line 21 of file print_param_defn.hpp.
| void mlpack::bindings::julia::PrintParamDefn | ( | const util::ParamData & | , |
| const std::string & | , | ||
| const typename std::enable_if< arma::is_arma_type< T >::value >::type * | = 0 |
||
| ) |
Matrices are serializable but here we also print nothing.
Definition at line 34 of file print_param_defn.hpp.
| void mlpack::bindings::julia::PrintParamDefn | ( | const util::ParamData & | d, |
| const std::string & | programName, | ||
| const typename std::enable_if<!arma::is_arma_type< T >::value >::type * | = 0, |
||
| const typename std::enable_if< data::HasSerialize< T >::value >::type * | = 0 |
||
| ) |
For non-matrix serializable types we need to print something.
Definition at line 46 of file print_param_defn.hpp.
References ParamData::cppType, and StripType().
| void mlpack::bindings::julia::PrintParamDefn | ( | const util::ParamData & | d, |
| const void * | input, | ||
| void * | |||
| ) |
If the type is serializable, print the definition of a special utility function to set a CLI parameter of that type to stdout.
Definition at line 90 of file print_param_defn.hpp.
|
inline |
Print the type of a parameter that a user would specify from Julia.
| std::string mlpack::bindings::julia::PrintTypeDoc | ( | const util::ParamData & | data, |
| const typename boost::disable_if< arma::is_arma_type< T >>::type * | = 0, |
||
| const typename boost::disable_if< util::IsStdVector< T >>::type * | = 0, |
||
| const typename boost::disable_if< data::HasSerialize< T >>::type * | = 0, |
||
| const typename boost::disable_if< std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>>::type * | = 0 |
||
| ) |
Return a string representing the command-line type of an option.
| std::string mlpack::bindings::julia::PrintTypeDoc | ( | const util::ParamData & | data, |
| const typename std::enable_if< util::IsStdVector< T >::value >::type * | = 0 |
||
| ) |
Return a string representing the command-line type of a vector.
| std::string mlpack::bindings::julia::PrintTypeDoc | ( | const util::ParamData & | data, |
| const typename std::enable_if< arma::is_arma_type< T >::value >::type * | = 0 |
||
| ) |
Return a string representing the command-line type of a matrix option.
| std::string mlpack::bindings::julia::PrintTypeDoc | ( | const util::ParamData & | data, |
| const typename std::enable_if< std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type * | = 0 |
||
| ) |
Return a string representing the command-line type of a matrix tuple option.
| std::string mlpack::bindings::julia::PrintTypeDoc | ( | const util::ParamData & | data, |
| const typename boost::disable_if< arma::is_arma_type< T >>::type * | = 0, |
||
| const typename boost::enable_if< data::HasSerialize< T >>::type * | = 0 |
||
| ) |
Return a string representing the command-line type of a model.
| void mlpack::bindings::julia::PrintTypeDoc | ( | const util::ParamData & | data, |
| const void * | , | ||
| void * | output | ||
| ) |
Print the command-line type of an option into a string.
Definition at line 72 of file print_type_doc.hpp.
|
inline |
Print documentation for each of the types.
|
inline |
Given a parameter type, print the corresponding value.
|
inline |
| std::string mlpack::bindings::julia::ProgramCall | ( | const std::string & | programName, |
| Args... | args | ||
| ) |
Given a name of a binding and a variable number of arguments (and their contents), print the corresponding function call.
|
inline |
Given a C++ type name, turn it into something that has no special characters that can simply be printed.
This is similar to but not identical to mlpack::bindings::python::StripType().
| cppType | C++ type as a string. |
Definition at line 23 of file strip_type.hpp.
Referenced by PrintParamDefn().
| std::string programName |