classifiers/nb.h File Reference
#include "../hash/nps_vocab.h"
#include "../imat/imat_csr.h"
#include "../error/error.h"
Go to the source code of this file.
Classes |
struct | nb_counts_t |
struct | nb_model_t |
Enumerations |
enum | nb_smooth_t { Laplace = 0
} |
Functions |
nb_counts_t * | nb_counts_new (long, long) |
void | nb_counts_del (nb_counts_t *) |
void | nb_add_counts (nb_counts_t *, nps_imat_csr_t *) |
long | nb_model_new (long, long) |
void | nb_model_del (nb_model_t *) |
nb_model_t * | nb_ceate_model (nb_counts_t *, int) |
long | nb_classify (nb_model_t *, char, s8_t *, double *, long, double *) |
int | nb_model_save (nb_model_t *, NPS_VOC_T *, NPS_VOC_T *, NPS_VOC_T *, const char *, nps_error_t *err) |
nb_model_t * | nb_model_load (nb_model_t **, NPS_VOC_T **, NPS_VOC_T **, const char *, char ignore_marginals, nps_error_t *err) |
Enumeration Type Documentation
Function Documentation
long nb_classify |
( |
nb_model_t * |
, |
|
|
char |
, |
|
|
s8_t * |
, |
|
|
double * |
, |
|
|
long |
, |
|
|
double * |
| |
|
) |
| | |
long nb_model_new |
( |
long |
, |
|
|
long |
| |
|
) |
| | |
int nb_model_save |
( |
nb_model_t * |
, |
|
|
NPS_VOC_T * |
, |
|
|
NPS_VOC_T * |
, |
|
|
NPS_VOC_T * |
, |
|
|
const char * |
, |
|
|
nps_error_t * |
err | |
|
) |
| | |