Macros | 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.

Macros

#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
 

Macro Definition Documentation

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

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

Function Documentation

void do_cross_validation ( )

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

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

int cross_validation

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.

struct svm_parameter param

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.



ml_classifiers
Author(s): Scott Niekum , Joshua Whitley
autogenerated on Tue May 14 2019 02:28:35