From bc79574056379c642732d772da34d121539f5cfb Mon Sep 17 00:00:00 2001 From: joelowj Date: Thu, 24 Oct 2019 13:56:15 +0800 Subject: [PATCH 1/2] improve & corrected gensim documentation (#2637) --- gensim/models/wrappers/dtmmodel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gensim/models/wrappers/dtmmodel.py b/gensim/models/wrappers/dtmmodel.py index a0a2c7c6c5..11b35142be 100644 --- a/gensim/models/wrappers/dtmmodel.py +++ b/gensim/models/wrappers/dtmmodel.py @@ -97,8 +97,8 @@ def __init__(self, dtm_path, corpus=None, time_slices=None, mode='fit', model='d Max em optimization iterations in LDA. alpha : int, optional Hyperparameter that affects sparsity of the document-topics for the LDA models in each timeslice. - top_chain_var : int, optional - Hyperparameter that affects. + top_chain_var : float, optional + Hyperparameter that determines how similar topics would be over multiple timeslice. rng_seed : int, optional Random seed. initialize_lda : bool, optional From a73a01833b41107925fc73600811b23356d90e34 Mon Sep 17 00:00:00 2001 From: joelowj Date: Thu, 24 Oct 2019 18:58:15 +0800 Subject: [PATCH 2/2] more descriptive explanation of top_chain_var --- gensim/models/wrappers/dtmmodel.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gensim/models/wrappers/dtmmodel.py b/gensim/models/wrappers/dtmmodel.py index 11b35142be..4530bbb3b7 100644 --- a/gensim/models/wrappers/dtmmodel.py +++ b/gensim/models/wrappers/dtmmodel.py @@ -98,7 +98,9 @@ def __init__(self, dtm_path, corpus=None, time_slices=None, mode='fit', model='d alpha : int, optional Hyperparameter that affects sparsity of the document-topics for the LDA models in each timeslice. top_chain_var : float, optional - Hyperparameter that determines how similar topics would be over multiple timeslice. + This hyperparameter controls one of the key aspect of topic evolution which is the speed at which + these topics evolve. A smaller top_chain_var leads to similar word distributions over multiple timeslice. + rng_seed : int, optional Random seed. initialize_lda : bool, optional