SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GUICommands.h
Go to the documentation of this file.
1 /*
2  * This program is free software you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 2007-2008 Soeren Sonnenburg
8  * Copyright (C) 2007-2008 Fraunhofer Institute FIRST and Max-Planck-Society
9  */
10 
11 #ifndef __GUICOMMANDS_H_
12 #define __GUICOMMANDS_H_
13 
14 #include <shogun/lib/config.h>
15 #include <shogun/lib/common.h>
16 
17 //names of octave/python/matlab/R interface commands
18 #define N_SEND_COMMAND "send_command"
19 #define N_CRC "crc"
20 #define N_TRANSLATE_STRING "translate_string"
21 #define N_GET_HMM "get_hmm"
22 #define N_GET_VITERBI_PATH "get_viterbi_path"
23 #define N_GET_NUM_SVMS "get_num_svms"
24 #define N_GET_SVM "get_svm"
25 #define N_GET_CLASSIFIER "get_classifier"
26 #define N_GET_CLUSTERING "get_clustering"
27 #define N_GET_SVM_OBJECTIVE "get_svm_objective"
28 #define N_COMPUTE_SVM_PRIMAL_OBJECTIVE "compute_svm_primal_objective"
29 #define N_COMPUTE_SVM_DUAL_OBJECTIVE "compute_svm_dual_objective"
30 #define N_COMPUTE_MKL_PRIMAL_OBJECTIVE "compute_mkl_primal_objective"
31 #define N_COMPUTE_MKL_DUAL_OBJECTIVE "compute_mkl_dual_objective"
32 #define N_COMPUTE_RELATIVE_MKL_DUALITY_GAP "compute_relative_mkl_duality_gap"
33 #define N_COMPUTE_ABSOLUTE_MKL_DUALITY_GAP "compute_absolute_mkl_duality_gap"
34 #define N_GET_KERNEL_INIT "get_kernel_init"
35 #define N_GET_KERNEL_MATRIX "get_kernel_matrix"
36 #define N_GET_DISTANCE_MATRIX "get_distance_matrix"
37 #define N_HMM_LIKELIHOOD "hmm_likelihood"
38 #define N_GET_KERNEL_OPTIMIZATION "get_kernel_optimization"
39 #define N_COMPUTE_BY_SUBKERNELS "compute_by_subkernels"
40 #define N_SET_SUBKERNEL_WEIGHTS "set_subkernel_weights"
41 #define N_SET_SUBKERNEL_WEIGHTS_COMBINED "set_subkernel_weights_combined"
42 #define N_GET_DOTFEATURE_WEIGHTS_COMBINED "get_dotfeature_weights_combined"
43 #define N_SET_DOTFEATURE_WEIGHTS_COMBINED "set_dotfeature_weights_combined"
44 #define N_SET_LAST_SUBKERNEL_WEIGHTS "set_last_subkernel_weights"
45 #define N_SET_WD_POS_WEIGHTS "set_WD_position_weights"
46 #define N_GET_SUBKERNEL_WEIGHTS "get_subkernel_weights"
47 #define N_GET_LAST_SUBKERNEL_WEIGHTS "get_last_subkernel_weights"
48 #define N_GET_WD_POS_WEIGHTS "get_WD_position_weights"
49 #define N_COMPUTE_POIM_WD "compute_poim_wd"
50 #define N_GET_WD_SCORING "get_WD_scoring"
51 #define N_GET_WD_CONSENSUS "get_WD_consensus"
52 #define N_GET_SPEC_SCORING "get_SPEC_scoring"
53 #define N_GET_SPEC_CONSENSUS "get_SPEC_consensus"
54 #define N_GET_FEATURES "get_features"
55 #define N_GET_LABELS "get_labels"
56 #define N_GET_VERSION "get_version"
57 #define N_GET_PREPROC_INIT "get_preproc_init"
58 #define N_GET_HMM_DEFS "get_hmm_defs"
59 #define N_SET_HMM "set_hmm"
60 #define N_MODEL_PROB_NO_B_TRANS "model_prob_no_b_trans"
61 #define N_BEST_PATH_NO_B_TRANS "best_path_no_b_trans"
62 #define N_SIGNALS_SET_MODEL "signals_set_model"
63 #define N_SIGNALS_SET_POSITIONS "signals_set_positions"
64 #define N_SIGNALS_SET_LABELS "signals_set_labels"
65 #define N_SIGNALS_SET_SPLIT "signals_set_split"
66 #define N_SIGNALS_SET_TRAIN_MASK "signals_set_train_mask"
67 #define N_SIGNALS_ADD_FEATURE "signals_add_feature"
68 #define N_SIGNALS_ADD_KERNEL "signals_add_kernel"
69 #define N_SIGNALS_RUN "signals_run"
70 #define N_BEST_PATH_TRANS_DERIV "best_path_trans_deriv"
71 #define N_BEST_PATH_TRANS "best_path_trans"
72 #define N_SET_PLIF_STRUCT "set_plif_struct"
73 #define N_GET_PLIF_STRUCT "get_plif_struct"
74 #define N_PRECOMPUTE_SUBKERNELS "precompute_subkernels"
75 #define N_PRECOMPUTE_CONTENT_SVMS "precompute_content_svms"
76 #define N_GET_LIN_FEAT "get_lin_feat"
77 #define N_INIT_INTRON_LIST "init_intron_list"
78 #define N_SET_LIN_FEAT "set_lin_feat"
79 #define N_INIT_DYN_PROG "init_dyn_prog"
80 #define N_CLEAN_UP_DYN_PROG "clean_up_dyn_prog"
81 #define N_PRECOMPUTE_TILING_FEATURES "precompute_tiling_features"
82 #define N_LONG_TRANSITION_SETTINGS "long_transition_settings"
83 #define N_SET_MODEL "set_model"
84 #define N_SET_FEATURE_MATRIX "set_feature_matrix"
85 #define N_SET_FEATURE_MATRIX_SPARSE "set_feature_matrix_sparse"
86 #define N_BEST_PATH_2STRUCT "best_path_2struct"
87 #define N_BEST_PATH_TRANS_SIMPLE "best_path_trans_simple"
88 #define N_BEST_PATH_NO_B "best_path_no_b"
89 #define N_SET_SVM "set_svm"
90 #define N_SET_LINEAR_CLASSIFIER "set_linear_classifier"
91 #define N_SET_CUSTOM_KERNEL "set_custom_kernel"
92 #define N_SET_KERNEL_INIT "set_kernel_init"
93 #define N_SET_KERNEL_NORMALIZATION "set_kernel_normalization"
94 #define N_SET_FEATURES "set_features"
95 #define N_ADD_FEATURES "add_features"
96 #define N_ADD_MULTIPLE_FEATURES "add_multiple_features"
97 #define N_ADD_DOTFEATURES "add_dotfeatures"
98 #define N_DEL_LAST_FEATURES "del_last_features"
99 #define N_SET_LABELS "set_labels"
100 #define N_SET_PREPROC_INIT "set_preproc_init"
101 #define N_SET_HMM_DEFS "set_hmm_defs"
102 #define N_ONE_CLASS_HMM_CLASSIFY "one_class_hmm_classify"
103 #define N_ONE_CLASS_LINEAR_HMM_CLASSIFY "one_class_linear_hmm_classify"
104 #define N_HMM_CLASSIFY "hmm_classify"
105 #define N_ONE_CLASS_HMM_CLASSIFY_EXAMPLE "one_class_hmm_classify_example"
106 #define N_HMM_CLASSIFY_EXAMPLE "hmm_classify_example"
107 #define N_CLASSIFY "classify"
108 #define N_CLASSIFY_EXAMPLE "classify_example"
109 #define N_SVM_CLASSIFY "svm_classify"
110 #define N_SVM_CLASSIFY_EXAMPLE "svm_classify_example"
111 #define N_GET_PLUGIN_ESTIMATE "get_plugin_estimate"
112 #define N_SET_PLUGIN_ESTIMATE "set_plugin_estimate"
113 #define N_PLUGIN_ESTIMATE_CLASSIFY "plugin_estimate_classify"
114 #define N_PLUGIN_ESTIMATE_CLASSIFY_EXAMPLE "plugin_estimate_classify_example"
115 
116 //names of text interface commands
117 #define N_NEW_HMM "new_hmm"
118 #define N_NEW_SVM "new_svm"
119 #define N_NEW_CLASSIFIER "new_classifier"
120 #define N_NEW_PLUGIN_ESTIMATOR "new_plugin_estimator"
121 #define N_NEW_REGRESSION "new_regression"
122 #define N_NEW_CLUSTERING "new_clustering"
123 #define N_TRAIN_ESTIMATOR "train_estimator"
124 #define N_TRAIN_CLASSIFIER "train_classifier"
125 #define N_TRAIN_REGRESSION "train_regression"
126 #define N_TRAIN_CLUSTERING "train_clustering"
127 #define N_SET_PERCEPTRON_PARAMETERS "set_perceptron_parameters"
128 #define N_TEST_ESTIMATOR "test_estimator"
129 #define N_LOAD_PREPROC "load_preproc"
130 #define N_SAVE_PREPROC "save_preproc"
131 #define N_LOAD_HMM "load_hmm"
132 #define N_SAVE_HMM "save_hmm"
133 #define N_LOAD_CLASSIFIER "load_classifier"
134 #define N_SAVE_CLASSIFIER "save_classifier"
135 #define N_LOAD_LABELS "load_labels"
136 #define N_LOAD_FEATURES "load_features"
137 #define N_SAVE_FEATURES "save_features"
138 #define N_CLEAN_FEATURES "clean_features"
139 #define N_RESHAPE "reshape"
140 #define N_LOAD_DEFINITIONS "load_defs"
141 #define N_SAVE_KERNEL "save_kernel"
142 #define N_SET_HMM_AS "set_hmm_as"
143 #define N_NORMALIZE "normalize_hmm"
144 #define N_RELATIVE_ENTROPY "relative_entropy"
145 #define N_ENTROPY "entropy"
146 #define N_PERMUTATION_ENTROPY "permutation_entropy"
147 #define N_SET_KERNEL "set_kernel"
148 #define N_SET_DISTANCE "set_distance"
149 #define N_ADD_KERNEL "add_kernel"
150 #define N_DEL_LAST_KERNEL "del_last_kernel"
151 #define N_CLEAN_KERNEL "clean_kernel"
152 
153 #ifdef USE_SVMLIGHT
154 #define N_RESIZE_KERNEL_CACHE "resize_kernel_cache"
155 #endif //USE_SVMLIGHT
156 
157 #define N_SET_KERNEL_OPTIMIZATION_TYPE "set_kernel_optimization_type"
158 #define N_SET_PRIOR_PROBS "set_prior_probs"
159 #define N_SET_PRIOR_PROBS_FROM_LABELS "set_prior_probs_from_labels"
160 #define N_ATTACH_PREPROC "attach_preproc"
161 #define N_ADD_PREPROC "add_preproc"
162 #define N_DEL_PREPROC "del_preproc"
163 #define N_CLEAN_PREPROC "clean_preproc"
164 #define N_INIT_KERNEL "init_kernel"
165 #define N_INIT_DISTANCE "init_distance"
166 #define N_DELETE_KERNEL_OPTIMIZATION "delete_kernel_optimization"
167 #define N_INIT_KERNEL_OPTIMIZATION "init_kernel_optimization"
168 #define N_SAVE_PATH "save_hmm_path"
169 #define N_SAVE_LIKELIHOOD "save_hmm_likelihood"
170 #define N_BEST_PATH "best_path"
171 #define N_VITERBI_TRAIN "vit"
172 #define N_VITERBI_TRAIN_DEFINED "vit_def"
173 #define N_LINEAR_TRAIN "linear_train"
174 #define N_CLEAR "clear"
175 #define N_CHOP "chop"
176 #define N_CONVERGENCE_CRITERIA "convergence_criteria"
177 #define N_PSEUDO "pseudo"
178 #define N_CONVERT "convert"
179 #define N_C "c"
180 #define N_LOGLEVEL "loglevel"
181 #define N_PROGRESS "progress"
182 #define N_PRINT "print"
183 #define N_ECHO "echo"
184 #define N_SVMQPSIZE "svm_qpsize"
185 #define N_SVMBUFSIZE "svm_bufsize"
186 #define N_SVMMAXQPSIZE "svm_max_qpsize"
187 #define N_THREADS "threads"
188 #define N_MKL_PARAMETERS "mkl_parameters"
189 #define N_ENT_LAMBDA "elasticnet_lambda"
190 #define N_MKL_BLOCK_NORM "mkl_block_norm"
191 #define N_SVM_EPSILON "svm_epsilon"
192 #define N_SVM_MAX_TRAIN_TIME "svm_max_train_time"
193 #define N_SVR_TUBE_EPSILON "svr_tube_epsilon"
194 #define N_SVM_NU "svm_nu"
195 #define N_SVM_USE_BIAS "svm_use_bias"
196 #define N_MKL_USE_INTERLEAVED_OPTIMIZATION "mkl_use_interleaved_optimization"
197 #define N_DO_AUC_MAXIMIZATION "do_auc_maximization"
198 #define N_ADD_STATES "add_states"
199 #define N_APPEND_HMM "append_hmm"
200 #define N_APPEND_MODEL "append_model"
201 #define N_BAUM_WELCH_TRAIN "bw"
202 #define N_BAUM_WELCH_TRANS_TRAIN "bw_trans"
203 #define N_BAUM_WELCH_TRAIN_DEFINED "bw_def"
204 #define N_LIKELIHOOD "likelihood"
205 #define N_USE_BATCH_COMPUTATION "use_batch_computation"
206 #define N_USE_DIAGONAL_SPEEDUP "use_diagonal_speedup"
207 #define N_USE_MKL "use_mkl"
208 #define N_USE_SHRINKING "use_shrinking"
209 #define N_USE_LINADD "use_linadd"
210 #define N_OUTPUT_HMM "output_hmm"
211 #define N_OUTPUT_HMM_DEFINED "output_hmm_defined"
212 #define N_QUIT "quit"
213 #define N_EXEC "exec"
214 #define N_EXIT "exit"
215 #define N_SYNTAX_HIGHLIGHT "syntax_highlight"
216 #define N_HELP "help"
217 #define N_WHOS "whos"
218 #define N_SYSTEM "!"
219 #define N_SET_SOLVER "set_solver"
220 #define N_SET_CONSTRAINT_GENERATOR "set_constraint_generator"
221 #define N_SET_THRESHOLD "set_threshold"
222 #define N_INIT_RANDOM "init_random"
223 #define N_SVM_TRAIN "svm_train"
224 #define N_SVM_TEST "svm_test"
225 #define N_ONE_CLASS_HMM_TEST "one_class_hmm_test"
226 #define N_HMM_TEST "hmm_test"
227 #define N_SET_OUTPUT "set_output"
228 #define N_SET_REF_FEAT "set_ref_features"
229 #define N_TIC "tic"
230 #define N_TOC "toc"
231 #define N_KRR_TAU "krr_tau"
232 #define N_RUN_PYTHON "run_python"
233 #define N_RUN_OCTAVE "run_octave"
234 #define N_RUN_R "run_r"
235 #define N_PR_LOQO "pr_loqo"
236 #define N_SET_CONVERTER "set_converter"
237 #define N_APPLY_CONVERTER "apply_converter"
238 #define N_EMBED "embed"
239 #endif

SHOGUN Machine Learning Toolbox - Documentation