hpandeycodeit commented on a change in pull request #432: MADLIB-1351 : Added
stopping criteria on perplexity to LDA
URL: https://github.com/apache/madlib/pull/432#discussion_r328823021
##########
File path: src/ports/postgres/modules/lda/lda.py_in
##########
@@ -191,7 +199,20 @@ class LDATrainer:
# etime = time.time()
# plpy.notice('\t\ttime elapsed: %.2f seconds' % (etime - stime))
+ self.calculatePerplexity(it, work_table_in)
+
+
def update_model_table(self, work_table_in):
+
+ # JIRA: MADLIB-1351
+ # Create a string based on the value of self.perplexity
+ prep_string = ""
+ prep_itr_str = ""
+ if len(self.perplexity) > 1:
+ prep_string = ",
{0}".format(py_list_to_sql_string(self.perplexity))
Review comment:
changed the names here.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services