Functions | |
template<class T> | |
int | correct_label (IncrementalSGD< T > *sgd, int label, T ex) |
template<class T> | |
int | train (IncrementalSGD< T > *sgd, int label, T ex) |
template<class T> | |
void | apply_to_file (char *file_name, IncrementalSGD< T > *sgd, int(*foo)(IncrementalSGD< T > *, int, T), int &nExamples, int &nTotal) |
template<class T> | |
void | train_and_test (char *train_name, char *test_file, char *input_model_file, char *out_file, int dim, double lambda, bool pureSGD, int rsize) |
int | main (int argc, char *argv[]) |
void apply_to_file | ( | char * | file_name, | |
IncrementalSGD< T > * | sgd, | |||
int(*)(IncrementalSGD< T > *, int, T) | foo, | |||
int & | nExamples, | |||
int & | nTotal | |||
) |
int correct_label | ( | IncrementalSGD< T > * | sgd, | |
int | label, | |||
T | ex | |||
) |
int main | ( | int | argc, | |
char * | argv[] | |||
) |
int train | ( | IncrementalSGD< T > * | sgd, | |
int | label, | |||
T | ex | |||
) |
void train_and_test | ( | char * | train_name, | |
char * | test_file, | |||
char * | input_model_file, | |||
char * | out_file, | |||
int | dim, | |||
double | lambda, | |||
bool | pureSGD, | |||
int | rsize | |||
) |