#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "../svm.h"
#include "mex.h"
#include "svm_model_matlab.h"
Go to the source code of this file.
Macros | |
#define | CMD_LEN 2048 |
#define | Malloc(type, n) (type *)malloc((n)*sizeof(type)) |
Functions | |
double | do_cross_validation () |
void | exit_with_help () |
static void | fake_answer (mxArray *plhs[]) |
void | mexFunction (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) |
int | parse_command_line (int nrhs, const mxArray *prhs[], char *model_file_name) |
void | print_null (const char *s) |
void | print_string_matlab (const char *s) |
int | read_problem_dense (const mxArray *label_vec, const mxArray *instance_mat) |
int | read_problem_sparse (const mxArray *label_vec, const mxArray *instance_mat) |
Variables | |
int | cross_validation |
struct svm_model * | model |
int | nr_fold |
struct svm_parameter | param |
struct svm_problem | prob |
struct svm_node * | x_space |
#define CMD_LEN 2048 |
Definition at line 16 of file svmtrain.c.
#define Malloc | ( | type, | |
n | |||
) | (type *)malloc((n)*sizeof(type)) |
Definition at line 17 of file svmtrain.c.
void do_cross_validation | ( | ) |
Definition at line 67 of file svmtrain.c.
void exit_with_help | ( | ) |
Definition at line 25 of file svmtrain.c.
|
static |
Definition at line 374 of file svmtrain.c.
void mexFunction | ( | int | nlhs, |
mxArray * | plhs[], | ||
int | nrhs, | ||
const mxArray * | prhs[] | ||
) |
Definition at line 381 of file svmtrain.c.
int parse_command_line | ( | int | nrhs, |
const mxArray * | prhs[], | ||
char * | model_file_name | ||
) |
Definition at line 111 of file svmtrain.c.
void print_null | ( | const char * | s | ) |
Definition at line 19 of file svmtrain.c.
void print_string_matlab | ( | const char * | s | ) |
Definition at line 20 of file svmtrain.c.
int read_problem_dense | ( | const mxArray * | label_vec, |
const mxArray * | instance_mat | ||
) |
Definition at line 225 of file svmtrain.c.
int read_problem_sparse | ( | const mxArray * | label_vec, |
const mxArray * | instance_mat | ||
) |
Definition at line 303 of file svmtrain.c.
int cross_validation |
Definition at line 63 of file svmtrain.c.
struct svm_model* model |
Definition at line 61 of file svmtrain.c.
int nr_fold |
Definition at line 64 of file svmtrain.c.
struct svm_parameter param |
Definition at line 59 of file svmtrain.c.
struct svm_problem prob |
Definition at line 60 of file svmtrain.c.
struct svm_node* x_space |
Definition at line 62 of file svmtrain.c.