Sha256: 7c248f2da5cf23cc6ff2c4a222796855fb7324cf23c794a0dbc3a06e8a26253c
Contents?: true
Size: 507 Bytes
Versions: 18
Compression:
Stored size: 507 Bytes
Contents
#ifndef LDA_ALPHA_H #define LDA_ALPHA_H #include <stdlib.h> #include <math.h> #include <float.h> #include "lda.h" #include "utils.h" #define NEWTON_THRESH 1e-5 #define MAX_ALPHA_ITER 1000 double alhood(double a, double ss, int D, int K); double d_alhood(double a, double ss, int D, int K); double d2_alhood(double a, int D, int K); double opt_alpha(double ss, int D, int K); double quiet_opt_alpha(double ss, int D, int K); //void maximize_alpha(double** gamma, lda_model* model, int num_docs); #endif
Version data entries
18 entries across 18 versions & 2 rubygems