SLIM
1.0
Sparse Linear Methods (SLIM) for top-n recommender systems
|
A data structure for ctrl parameters. More...
#include <struct.h>
Data Fields | |
char * | train_file |
char * | test_file |
char * | model_file |
char * | pred_file |
int | dbglvl |
double | lambda |
double | beta |
int | starti |
int | endi |
double | optTol |
int | max_bcls_niters |
double | bl |
double | bu |
int | fs |
char * | fs_file |
int | k |
int | bsize |
int | nratings |
int | topn |
int | transpose |
double ctrl_t::beta |
the regularization parameter for L-2 norm
Definition at line 52 of file struct.h.
Referenced by create_ctrl(), parse_cmdline(), and slim_learn().
double ctrl_t::bl |
lower bound for BCLS
Definition at line 65 of file struct.h.
Referenced by create_ctrl(), and slim_learn().
int ctrl_t::bsize |
block size for data dump
Definition at line 78 of file struct.h.
Referenced by create_ctrl(), parse_cmdline(), and slim_learn().
double ctrl_t::bu |
upper bound for BCLS
Definition at line 67 of file struct.h.
Referenced by create_ctrl(), and slim_learn().
int ctrl_t::dbglvl |
debug level, default 0
Definition at line 47 of file struct.h.
Referenced by bcsol(), create_ctrl(), parse_cmdline(), preprocess(), and slim_test().
int ctrl_t::endi |
the ending column index from which the coefficient matrix is calculated
Definition at line 57 of file struct.h.
Referenced by create_ctrl(), parse_cmdline(), and slim_learn().
int ctrl_t::fs |
if feature selection is applied
Definition at line 70 of file struct.h.
Referenced by create_ctrl(), parse_cmdline(), and slim_learn().
char* ctrl_t::fs_file |
a file name which contains a constraint matrix in csr format for feature selection
Definition at line 72 of file struct.h.
Referenced by create_ctrl(), free_ctrl(), parse_cmdline(), and slim_learn().
int ctrl_t::k |
number of features to use if feature selection is applied
Definition at line 75 of file struct.h.
Referenced by create_ctrl(), parse_cmdline(), and slim_fs_learn().
double ctrl_t::lambda |
the regularization parameter for L-1 norm
Definition at line 50 of file struct.h.
Referenced by create_ctrl(), parse_cmdline(), and slim_learn().
int ctrl_t::max_bcls_niters |
max number of iterations allowed in BCLS solver
Definition at line 62 of file struct.h.
Referenced by bcsol(), create_ctrl(), parse_cmdline(), and slim_learn().
char* ctrl_t::model_file |
a file name into which the model in csr format will be output
Definition at line 42 of file struct.h.
Referenced by create_ctrl(), free_ctrl(), main(), parse_cmdline(), and slim_learn().
int ctrl_t::nratings |
number of ratings
Definition at line 81 of file struct.h.
Referenced by create_ctrl(), parse_cmdline(), slim_predict(), and slim_test().
double ctrl_t::optTol |
optimality tolerance
Definition at line 60 of file struct.h.
Referenced by bcsol(), create_ctrl(), and parse_cmdline().
char* ctrl_t::pred_file |
a file name into which the prediction will be output
Definition at line 44 of file struct.h.
Referenced by create_ctrl(), free_ctrl(), parse_cmdline(), and slim_test().
int ctrl_t::starti |
the starting column index from which the coefficient matrix is calculated
Definition at line 55 of file struct.h.
Referenced by create_ctrl(), parse_cmdline(), and slim_learn().
char* ctrl_t::test_file |
a file name that contains the testing data in csr format
Definition at line 40 of file struct.h.
Referenced by create_ctrl(), free_ctrl(), main(), and parse_cmdline().
int ctrl_t::topn |
the number of recommendations to be recommended
Definition at line 84 of file struct.h.
Referenced by create_ctrl(), parse_cmdline(), and suggest_predict().
char* ctrl_t::train_file |
a file name that contains the training data in csr format
Definition at line 38 of file struct.h.
Referenced by create_ctrl(), free_ctrl(), main(), and parse_cmdline().
int ctrl_t::transpose |
need to transpose the matrix
Definition at line 87 of file struct.h.
Referenced by create_ctrl(), parse_cmdline(), and read_constraint().