SVM_linear.h File Reference

Go to the source code of this file.

Classes

struct  problem
struct  parameter
struct  model
class  l2loss_svm_fun
class  l2_lr_fun

Functions

struct modeltrain (const struct problem *prob, const struct parameter *param)
void cross_validation (const struct problem *prob, const struct parameter *param, int32_t nr_fold, int32_t *target)
int32_t predict_values (const struct model *model_, const struct feature_node *x, float64_t *dec_values)
int32_t predict (const struct model *model_, const struct feature_node *x)
int32_t predict_probability (const struct model *model_, const struct feature_node *x, float64_t *prob_estimates)
int32_t save_model (const char *model_file_name, const struct model *model_)
struct modelload_model (const char *model_file_name)
int32_t get_nr_feature (const struct model *model_)
int32_t get_nr_class (const struct model *model_)
void get_labels (const struct model *model_, int32_t *label)
void destroy_model (struct model *model_)
void destroy_param (struct parameter *param)
const char * check_parameter (const struct problem *prob, const struct parameter *param)


Function Documentation

const char* check_parameter ( const struct problem prob,
const struct parameter param 
)

void cross_validation ( const struct problem prob,
const struct parameter param,
int32_t  nr_fold,
int32_t *  target 
)

void destroy_model ( struct model model_  ) 

void destroy_param ( struct parameter param  ) 

void get_labels ( const struct model model_,
int32_t *  label 
)

int32_t get_nr_class ( const struct model model_  ) 

int32_t get_nr_feature ( const struct model model_  ) 

struct model* load_model ( const char *  model_file_name  )  [read]

int32_t predict ( const struct model model_,
const struct feature_node *  x 
)

int32_t predict_probability ( const struct model model_,
const struct feature_node *  x,
float64_t prob_estimates 
)

int32_t predict_values ( const struct model model_,
const struct feature_node *  x,
float64_t dec_values 
)

int32_t save_model ( const char *  model_file_name,
const struct model model_ 
)

struct model* train ( const struct problem prob,
const struct parameter param 
) [read]


SHOGUN Machine Learning Toolbox - Documentation