vl_svmtrain MEX definition More...
#include <mexutils.h>
#include <vl/svm.h>
#include <vl/mathop.h>
#include <vl/homkermap.h>
#include <vl/stringop.h>
#include <assert.h>
#include <string.h>
Go to the source code of this file.
Classes | |
struct | DiagnsoticOpts_ |
Defines | |
#define | GET_NN_SCALAR(NAME, variable) |
#define | GET_SCALAR(NAME, variable) |
Typedefs | |
typedef struct DiagnsoticOpts_ | DiagnosticOpts |
Enumerations | |
enum | { opt_epsilon, opt_max_num_iterations, opt_bias_multiplier, opt_diagnostic_function, opt_diagnostic_frequency, opt_validation_subset, opt_loss, opt_model, opt_bias, opt_weights, opt_verbose, opt_solver, opt_starting_iteration, opt_bias_learning_rate } |
Functions | |
mxArray * | createScalarStructArray (void const **fields) |
void | diagnostic (VlSvm *svm, DiagnosticOpts *opts) |
mxArray * | makeInfoStruct (VlSvm *svm) |
void | mexFunction (int nout, mxArray *out[], int nin, const mxArray *in[]) |
VlSvmDataset * | parseDataset (const mxArray *dataset_array) |
Variables | |
vlmxOption | options [] |
vl_svmtrain MEX definition
Definition in file vl_svmtrain.c.
#define GET_NN_SCALAR | ( | NAME, | |
variable | |||
) |
GET_SCALAR(NAME, variable) \ if (variable < 0) { \ vlmxError(vlmxErrInvalidArgument, VL_STRINGIFY(NAME) " is negative.") ; \ }
#define GET_SCALAR | ( | NAME, | |
variable | |||
) |
if (!vlmxIsPlainScalar(optarg)) { \ vlmxError(vlmxErrInvalidArgument, VL_STRINGIFY(NAME) " is not a plain scalar.") ; \ } \ variable = (double) *mxGetPr(optarg);
typedef struct DiagnsoticOpts_ DiagnosticOpts |
anonymous enum |
Definition at line 27 of file vl_svmtrain.c.
mxArray* createScalarStructArray | ( | void const ** | fields | ) |
Definition at line 75 of file vl_svmtrain.c.
void diagnostic | ( | VlSvm * | svm, |
DiagnosticOpts * | opts | ||
) |
Definition at line 318 of file vl_svmtrain.c.
mxArray* makeInfoStruct | ( | VlSvm * | svm | ) |
Definition at line 237 of file vl_svmtrain.c.
void mexFunction | ( | int nout | , |
mxArray * | out[], | ||
int | nin, | ||
const mxArray * | in[] | ||
) |
Definition at line 362 of file vl_svmtrain.c.
VlSvmDataset* parseDataset | ( | const mxArray * | dataset_array | ) |
Definition at line 106 of file vl_svmtrain.c.
{ {"Epsilon", 1, opt_epsilon }, {"MaxNumIterations", 1, opt_max_num_iterations }, {"BiasMultiplier", 1, opt_bias_multiplier }, {"DiagnosticFunction", 1, opt_diagnostic_function }, {"DiagnosticFrequency", 1, opt_diagnostic_frequency}, {"ValidationSubset", 1, opt_validation_subset }, {"Loss", 1, opt_loss }, {"Verbose", 0, opt_verbose }, {"Solver", 1, opt_solver }, {"Model", 1, opt_model }, {"Bias", 1, opt_bias }, {"Weights", 1, opt_weights }, {"StartingIteration", 1, opt_starting_iteration }, {"BiasLearningRate", 1, opt_bias_learning_rate }, {0, 0, 0 } }
Definition at line 53 of file vl_svmtrain.c.