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

Version Path
lda-ruby-0.3.9 ext/lda-ruby/lda-alpha.h
ealdent-lda-ruby-0.1.3 lib/lda-alpha.h
ealdent-lda-ruby-0.1.4 lib/lda-alpha.h
ealdent-lda-ruby-0.1.5 lib/lda-alpha.h
ealdent-lda-ruby-0.1.6 lib/lda-alpha.h
ealdent-lda-ruby-0.1.7 lib/lda-alpha.h
ealdent-lda-ruby-0.2.0 lib/lda-alpha.h
ealdent-lda-ruby-0.2.1 lib/lda-alpha.h
ealdent-lda-ruby-0.2.2 lib/lda-alpha.h
ealdent-lda-ruby-0.2.3 lib/lda-alpha.h
ealdent-lda-ruby-0.3.0 ext/lda-ruby/lda-alpha.h
ealdent-lda-ruby-0.3.1 ext/lda-ruby/lda-alpha.h
lda-ruby-0.3.8 ext/lda-ruby/lda-alpha.h
lda-ruby-0.3.7 ext/lda-ruby/lda-alpha.h
lda-ruby-0.3.6 ext/lda-ruby/lda-alpha.h
lda-ruby-0.3.5 ext/lda-ruby/lda-alpha.h
lda-ruby-0.3.4 ext/lda-ruby/lda-alpha.h
lda-ruby-0.3.1 ext/lda-ruby/lda-alpha.h