Vowpal Wabbit
|
Public Member Functions | |
float | digamma (float x) |
float | lgamma (float x) |
float | powf (float x, float p) |
void | expdigammify (vw &all, float *gamma) |
void | expdigammify_2 (vw &all, float *gamma, float *norm) |
~lda () | |
Public Attributes | |
size_t | topics |
float | lda_alpha |
float | lda_rho |
float | lda_D |
float | lda_epsilon |
size_t | minibatch |
lda_math_mode | mmode |
v_array< float > | Elogtheta |
v_array< float > | decay_levels |
v_array< float > | total_new |
v_array< example * > | examples |
v_array< float > | total_lambda |
v_array< int > | doc_lengths |
v_array< float > | digammas |
v_array< float > | v |
std::vector< index_feature > | sorted_features |
bool | compute_coherence_metrics |
std::vector< uint32_t > | feature_counts |
std::vector< std::vector< size_t > > | feature_to_example_map |
bool | total_lambda_init |
double | example_t |
vw * | all |
Static Public Attributes | |
static constexpr float | underflow_threshold = 1.0e-10f |
Definition at line 60 of file lda_core.cc.
|
inline |
|
inline |
Definition at line 540 of file lda_core.cc.
References ldamath::digamma< float, USE_FAST_APPROX >(), ldamath::digamma< float, USE_PRECISE >(), ldamath::digamma< float, USE_SIMD >(), USE_FAST_APPROX, USE_PRECISE, and USE_SIMD.
Referenced by learn_batch(), and theta_kl().
|
inline |
Definition at line 601 of file lda_core.cc.
References ldamath::expdigammify< float, USE_SIMD >(), USE_FAST_APPROX, USE_PRECISE, and USE_SIMD.
Referenced by lda_loop().
|
inline |
Definition at line 620 of file lda_core.cc.
References ldamath::expdigammify_2< float, USE_SIMD >(), USE_FAST_APPROX, USE_PRECISE, and USE_SIMD.
Referenced by learn_batch().
|
inline |
Definition at line 561 of file lda_core.cc.
References ldamath::lgamma< float, USE_FAST_APPROX >(), ldamath::lgamma< float, USE_PRECISE >(), ldamath::lgamma< float, USE_SIMD >(), USE_FAST_APPROX, USE_PRECISE, and USE_SIMD.
Referenced by theta_kl().
|
inline |
Definition at line 581 of file lda_core.cc.
References ldamath::powf< float, USE_FAST_APPROX >(), ldamath::powf< float, USE_PRECISE >(), ldamath::powf< float, USE_SIMD >(), USE_FAST_APPROX, USE_PRECISE, and USE_SIMD.
Referenced by learn_batch().
vw* lda::all |
Definition at line 89 of file lda_core.cc.
Referenced by compute_coherence_metrics(), end_examples(), end_pass(), lda_loop(), learn_batch(), learn_with_metrics(), and save_load().
bool lda::compute_coherence_metrics |
Definition at line 80 of file lda_core.cc.
Referenced by end_pass().
v_array<float> lda::decay_levels |
Definition at line 71 of file lda_core.cc.
Referenced by end_examples(), and learn_batch().
v_array<float> lda::digammas |
Definition at line 76 of file lda_core.cc.
Referenced by learn_batch().
v_array<int> lda::doc_lengths |
Definition at line 75 of file lda_core.cc.
Referenced by learn(), and learn_batch().
v_array<float> lda::Elogtheta |
Definition at line 70 of file lda_core.cc.
Referenced by learn_batch().
double lda::example_t |
Definition at line 88 of file lda_core.cc.
Referenced by end_examples(), and learn_batch().
Definition at line 73 of file lda_core.cc.
Referenced by end_pass(), learn(), and learn_batch().
std::vector<uint32_t> lda::feature_counts |
Definition at line 83 of file lda_core.cc.
Referenced by compute_coherence_metrics(), and learn_with_metrics().
std::vector<std::vector<size_t> > lda::feature_to_example_map |
Definition at line 84 of file lda_core.cc.
Referenced by compute_coherence_metrics(), and learn_with_metrics().
float lda::lda_alpha |
Definition at line 63 of file lda_core.cc.
Referenced by lda_loop(), and theta_kl().
float lda::lda_D |
Definition at line 65 of file lda_core.cc.
Referenced by learn_batch(), and save_load().
float lda::lda_epsilon |
Definition at line 66 of file lda_core.cc.
Referenced by lda_loop().
float lda::lda_rho |
Definition at line 64 of file lda_core.cc.
Referenced by learn_batch(), and save_load().
size_t lda::minibatch |
Definition at line 67 of file lda_core.cc.
Referenced by learn().
lda_math_mode lda::mmode |
Definition at line 68 of file lda_core.cc.
std::vector<index_feature> lda::sorted_features |
Definition at line 78 of file lda_core.cc.
Referenced by learn(), and learn_batch().
size_t lda::topics |
Definition at line 62 of file lda_core.cc.
Referenced by compute_coherence_metrics(), find_cw(), lda_loop(), learn_batch(), and theta_kl().
v_array<float> lda::total_lambda |
Definition at line 74 of file lda_core.cc.
Referenced by learn_batch().
bool lda::total_lambda_init |
Definition at line 86 of file lda_core.cc.
v_array<float> lda::total_new |
Definition at line 72 of file lda_core.cc.
Referenced by learn_batch().
|
static |
Definition at line 91 of file lda_core.cc.
v_array<float> lda::v |
Definition at line 77 of file lda_core.cc.
Referenced by learn_batch().