Defines | Functions | Variables
svm-train.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include "svm.h"
Include dependency graph for svm-train.c:

Go to the source code of this file.

Defines

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

Functions

void do_cross_validation ()
void exit_input_error (int line_num)
void exit_with_help ()
int main (int argc, char **argv)
void parse_command_line (int argc, char **argv, char *input_file_name, char *model_file_name)
void print_null (const char *s)
void read_problem (const char *filename)
static char * readline (FILE *input)

Variables

int cross_validation
static char * line = NULL
static int max_line_len
struct svm_modelmodel
int nr_fold
struct svm_parameter param
struct svm_problem prob
struct svm_nodex_space

Define Documentation

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

Definition at line 7 of file svm-train.c.


Function Documentation

void exit_input_error ( int  line_num)

Definition at line 45 of file svm-train.c.

void exit_with_help ( )

Definition at line 11 of file svm-train.c.

int main ( int  argc,
char **  argv 
)

Definition at line 83 of file svm-train.c.

void parse_command_line ( int  argc,
char **  argv,
char *  input_file_name,
char *  model_file_name 
)

Definition at line 161 of file svm-train.c.

void print_null ( const char *  s)

Definition at line 9 of file svm-train.c.

void read_problem ( const char *  filename)

Definition at line 278 of file svm-train.c.

static char* readline ( FILE *  input) [static]

Definition at line 65 of file svm-train.c.


Variable Documentation

Definition at line 59 of file svm-train.c.

char* line = NULL [static]

Definition at line 62 of file svm-train.c.

int max_line_len [static]

Definition at line 63 of file svm-train.c.

struct svm_model* model

Definition at line 57 of file svm-train.c.

int nr_fold

Definition at line 60 of file svm-train.c.

Definition at line 55 of file svm-train.c.

struct svm_problem prob

Definition at line 56 of file svm-train.c.

struct svm_node* x_space

Definition at line 58 of file svm-train.c.



target_obejct_detector
Author(s): CIR-KIT
autogenerated on Thu Jun 6 2019 20:19:57