Skip to content

Commit

Permalink
fix cryptic doc text for debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
davebulaval committed Feb 18, 2022
1 parent 97cce0e commit 00b54dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/src/auto_examples/tutorials/run_lda.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@
"\"iterations\" high enough.\n",
"\n",
"I suggest the following way to choose iterations and passes. First, enable\n",
"logging (as described in many Gensim tutorials), and set ``eval_every = 1``\n",
"logging (``logging.basicConfig(level=logging.INFO, format='PID:%(process)d:%(threadName)s - %(asctime)s - %(levelname)s - %(filename)s:%(lineno)s - %(message)s')``), and set ``eval_every = 1``\n",
"in ``LdaModel``. Then, when training the model, look for a line in the log that\n",
"looks something like this::\n",
"\n",
Expand Down
3 changes: 2 additions & 1 deletion docs/src/auto_examples/tutorials/run_lda.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ def extract_documents(url='https://cs.nyu.edu/~roweis/data/nips12raw_str602.tgz'
# "iterations" high enough.
#
# I suggest the following way to choose iterations and passes. First, enable
# logging (as described in many Gensim tutorials), and set ``eval_every = 1``
# logging (``logging.basicConfig(level=logging.INFO, format='PID:%(process)d:%(threadName)s -
# %(asctime)s - %(levelname)s - %(filename)s:%(lineno)s - %(message)s')``), and set ``eval_every = 1``
# in ``LdaModel``. Then, when training the model, look for a line in the log that
# looks something like this::
#
Expand Down
3 changes: 2 additions & 1 deletion docs/src/auto_examples/tutorials/run_lda.rst
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,8 @@ over each document. It is important to set the number of "passes" and
"iterations" high enough.

I suggest the following way to choose iterations and passes. First, enable
logging (as described in many Gensim tutorials), and set ``eval_every = 1``
logging (``logging.basicConfig(level=logging.INFO, format='PID:%(process)d:%(threadName)s -
%(asctime)s - %(levelname)s - %(filename)s:%(lineno)s - %(message)s')``), and set ``eval_every = 1``
in ``LdaModel``. Then, when training the model, look for a line in the log that
looks something like this::

Expand Down

0 comments on commit 00b54dc

Please sign in to comment.