ze-filter  (ze-filter-0.8.0-develop-180218)
ze-lr-funcs.h File Reference

Go to the source code of this file.

Classes

struct  lr_opts_T
 
struct  lr_cargs_T
 
struct  lr_margs_T
 

Macros

#define LR_CLASS_UNKNOWN   -1
 
#define LR_CLASS_HAM   0
 
#define LR_CLASS_SPAM   1
 
#define LR_CMD_CLASS   0
 
#define LR_CMD_LEARN   1
 
#define LR_CMD_LEARN_RESAMPLE   2
 
#define LR_CMD_LEARN_FEEDBACK   3
 
#define LR_CMD_EXTRACT   4
 
#define LR_TASK_CLASSIFY   1
 
#define LR_TASK_LEARN   2
 
#define LR_TASK_EXTRACT   4
 
#define LR_OPTS_INITIALIZER
 
#define __ZE_LR_FUNCS_H   1
 

Typedefs

typedef double(* lr_callback_F) (int, lr_cargs_T *, lr_margs_T *)
 

Functions

bool lr_data_open (char *fname)
 
bool lr_data_reopen ()
 
bool lr_data_close ()
 
bool lr_data_dump (char *fname)
 
bool lr_classify (char *id, char *fname, lr_cargs_T *cargs, lr_margs_T *margs, test_score_T *score)
 
bool lr_learn (char *id, char *fname, lr_cargs_T *cargs, lr_margs_T *margs, test_score_T *score, bool spam)
 
bool lr_extract (char *id, char *fname, lr_cargs_T *cargs, lr_margs_T *margs)
 
bool lr_learn_options (bool active, double threshold)
 
bool lr_set_options (lr_opts_T *opts)
 
bool lr_get_options (lr_opts_T *opts)
 
void lr_print_options (lr_opts_T *opts)
 
bool lr_set_learn_callback (lr_callback_F)
 

Macro Definition Documentation

◆ __ZE_LR_FUNCS_H

#define __ZE_LR_FUNCS_H   1

Definition at line 160 of file ze-lr-funcs.h.