#include <sys/types.h>#include <sys/mman.h>#include <sys/stat.h>#include <fcntl.h>#include <errno.h>#include <math.h>#include <fstream>#include <assert.h>#include <sstream>#include "Util.h"#include "Exception.h"#include "svector.h"Go to the source code of this file.
Functions | |
| double | sprod_data (void *da, void *db) |
| double | plugin_kernel (void *da, void *db) |
| void * | plugin_parse_document (char *line, double *label, long *queryid, long *slackid, double *costfactor, long int *highest_feature, long int max_words_doc, char **comment) |
| void | plugin_write (FILE *os, void *d) |
| void * | plugin_copy_constructor (void *_d) |
| void | plugin_destructor (void *d) |
| void * | plugin_null (void) |
| void | plugin_kernel_setparm (char *kernel_parm) |
| void | plugin_clip (void *_words, int totwords) |
| int | main (int argc, char *argv[]) |
Variables | |
| static void * | K |
| static uint | size |
| static bool | fixed_point |
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Definition at line 187 of file svmDlight_demon.cpp.
| void plugin_clip | ( | void * | _words, | |
| int | totwords | |||
| ) |
Definition at line 182 of file svmDlight_demon.cpp.
| void* plugin_copy_constructor | ( | void * | _d | ) |
Definition at line 123 of file svmDlight_demon.cpp.
| void plugin_destructor | ( | void * | d | ) |
Definition at line 130 of file svmDlight_demon.cpp.
| double plugin_kernel | ( | void * | da, | |
| void * | db | |||
| ) |
Definition at line 50 of file svmDlight_demon.cpp.
References Exception::GetMessage(), sprod_data(), and svector::words.
| void plugin_kernel_setparm | ( | char * | kernel_parm | ) |
Definition at line 140 of file svmDlight_demon.cpp.
References Exception::Assert(), fixed_point, Exception::GetMessage(), K, size, Util::tokenize(), and Util::trim().
| void* plugin_null | ( | void | ) |
| void* plugin_parse_document | ( | char * | line, | |
| double * | label, | |||
| long * | queryid, | |||
| long * | slackid, | |||
| double * | costfactor, | |||
| long int * | highest_feature, | |||
| long int | max_words_doc, | |||
| char ** | comment | |||
| ) |
Definition at line 61 of file svmDlight_demon.cpp.
| void plugin_write | ( | FILE * | os, | |
| void * | d | |||
| ) |
Definition at line 118 of file svmDlight_demon.cpp.
| double sprod_data | ( | void * | da, | |
| void * | db | |||
| ) |
Definition at line 31 of file svmDlight_demon.cpp.
References Exception::Assert(), fixed_point, Exception::GetMessage(), K, size, and Util::tofloat().
Referenced by plugin_kernel().
bool fixed_point [static] |
Definition at line 29 of file svmDlight_demon.cpp.
Referenced by plugin_kernel_setparm(), and sprod_data().
void* K [static] |
Definition at line 27 of file svmDlight_demon.cpp.
Referenced by plugin_kernel_setparm(), and sprod_data().
uint size [static] |
Definition at line 28 of file svmDlight_demon.cpp.
Referenced by main(), plugin_kernel_setparm(), and sprod_data().
1.5.1