#ifndef LDA_ALPHA_H #define LDA_ALPHA_H #include #include #include #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