Defines | Functions | Variables
svmtrain.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "../svm.h"
#include "mex.h"
#include "svm_model_matlab.h"
Include dependency graph for svmtrain.c:

Go to the source code of this file.

Defines

#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_modelmodel
int nr_fold
struct svm_parameter param
struct svm_problem prob
struct svm_nodex_space

Define Documentation

#define CMD_LEN   2048

Definition at line 16 of file svmtrain.c.

#define Malloc (   type,
 
)    (type *)malloc((n)*sizeof(type))

Definition at line 17 of file svmtrain.c.


Function Documentation

Definition at line 64 of file svmtrain.c.

void exit_with_help ( )

Definition at line 22 of file svmtrain.c.

static void fake_answer ( mxArray *  plhs[]) [static]

Definition at line 371 of file svmtrain.c.

void mexFunction ( int  nlhs,
mxArray *  plhs[],
int  nrhs,
const mxArray *  prhs[] 
)

Definition at line 378 of file svmtrain.c.

int parse_command_line ( int  nrhs,
const mxArray *  prhs[],
char *  model_file_name 
)

Definition at line 108 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 222 of file svmtrain.c.

int read_problem_sparse ( const mxArray *  label_vec,
const mxArray *  instance_mat 
)

Definition at line 300 of file svmtrain.c.


Variable Documentation

Definition at line 60 of file svmtrain.c.

struct svm_model* model

Definition at line 58 of file svmtrain.c.

int nr_fold

Definition at line 61 of file svmtrain.c.

Definition at line 56 of file svmtrain.c.

struct svm_problem prob

Definition at line 57 of file svmtrain.c.

struct svm_node* x_space

Definition at line 59 of file svmtrain.c.



haf_grasping
Author(s): David Fischinger
autogenerated on Thu Jun 6 2019 18:35:09