mlpack_main.hpp
Go to the documentation of this file.
1 
9 #ifndef MLPACK_BINDINGS_MARKDOWN_MLPACK_MAIN_HPP
10 #define MLPACK_BINDINGS_MARKDOWN_MLPACK_MAIN_HPP
11 
12 #ifndef BINDING_TYPE
13  #error "BINDING_TYPE not defined! Don't include this file directly!"
14 #endif
15 #if BINDING_TYPE != BINDING_TYPE_MARKDOWN
16  #error "BINDING_TYPE is not set to BINDING_TYPE_MARKDOWN!"
17 #endif
18 
19 // This value doesn't actually matter, but it needs to be defined as something.
20 #define BINDING_MATRIX_TRANSPOSED true
21 
24 
29 #define PRINT_PARAM_STRING(x) mlpack::bindings::markdown::ParamString( \
30  STRINGIFY(BINDING_NAME), x)
31 
36 #define PRINT_PARAM_VALUE mlpack::bindings::markdown::PrintValue
37 
42 #define PRINT_DATASET mlpack::bindings::markdown::PrintDataset
43 
48 #define PRINT_MODEL mlpack::bindings::markdown::PrintModel
49 
54 #define IMPORT_EXT_LIB mlpack::bindings::markdown::ImportExtLib
55 
59 #define IMPORT_SPLIT mlpack::bindings::markdown::ImportSplit
60 
64 #define IMPORT_THIS mlpack::bindings::markdown::ImportThis
65 
70 #define GET_DATASET mlpack::bindings::markdown::GetDataset
71 
75 #define SPLIT_TRAIN_TEST mlpack::bindings::markdown::SplitTrainTest
76 
81 #define CREATE_OBJECT(...) mlpack::bindings::markdown::CreateObject(\
82  STRINGIFY(BINDING_NAME), __VA_ARGS__)
83 
87 #define CALL_METHOD(...) mlpack::bindings::markdown::CallMethod(\
88  STRINGIFY(BINDING_NAME), __VA_ARGS__)
89 
97 #define PRINT_CALL mlpack::bindings::markdown::ProgramCall
98 
103 #define BINDING_IGNORE_CHECK(x) mlpack::bindings::markdown::IgnoreCheck( \
104  STRINGIFY(BINDING_NAME), x)
105 
106 // This doesn't actually matter for this binding type.
107 #define BINDING_MATRIX_TRANSPOSED true
108 
109 namespace mlpack {
110 namespace util {
111 
112 template<typename T>
114 
115 }
116 }
117 
119 
120 // This parameter is available for all languages.
121 PARAM_GLOBAL(bool, "verbose", "Display informational messages and the full "
122  "list of parameters and timers at the end of execution.", "v", "bool",
123  false, true, false, false);
124 
125 // CLI-specific parameters.
126 PARAM_GLOBAL(bool, "help", "Default help info.", "h", "bool", false, true,
127  false, false);
128 PARAM_GLOBAL(std::string, "info", "Print help on a specific option.", "",
129  "std::string", false, true, false, "");
130 PARAM_GLOBAL(bool, "version", "Display the version of mlpack.", "V", "bool",
131  false, true, false, false);
132 
133 // Python-specific parameters.
134 PARAM_GLOBAL(bool, "copy_all_inputs", "If specified, all input parameters will "
135  "be deep copied before the method is run. This is useful for debugging "
136  "problems where the input parameters are being modified by the algorithm, "
137  "but can slow down the code.", "", "bool", false, true, false, false);
138 PARAM_GLOBAL(bool, "check_input_matrices", "If specified, the input matrix "
139  "is checked for NaN and inf values; an exception is thrown if any are "
140  "found.", "", "bool", false, true, false, false);
141 
142 #endif
Linear algebra utility functions, generally performed on matrices or vectors.
The Markdown option class.
Definition: md_option.hpp:33
mlpack::bindings::cli::CLIOption< T > Option
Definition: mlpack_main.hpp:70
PARAM_GLOBAL(bool, "help", "Default help info.", "h", "bool", false, true, false, false)