Skip to content

Commit

Permalink
clarify runtime expectations (#3381)
Browse files Browse the repository at this point in the history
* clarify runtime expectations

* update doc files made stale by this PR

Co-authored-by: Michael Penkov <m@penkov.dev>
  • Loading branch information
gojomo and mpenkov authored Dec 7, 2022
1 parent 985a3bd commit 68fdbf9
Show file tree
Hide file tree
Showing 6 changed files with 206 additions and 271 deletions.
18 changes: 9 additions & 9 deletions docs/src/auto_examples/tutorials/run_doc2vec_lee.ipynb

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions docs/src/auto_examples/tutorials/run_doc2vec_lee.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,15 @@ def read_corpus(fname, tokens_only=False):

###############################################################################
# Next, train the model on the corpus.
# If optimized Gensim (with BLAS library) is being used, this should take no more than 3 seconds.
# If the BLAS library is not being used, this should take no more than 2
# minutes, so use optimized Gensim with BLAS if you value your time.
# In the usual case, where Gensim installation found a BLAS library for optimized
# bulk vector operations, this training on this tiny 300 document, ~60k word corpus
# should take just a few seconds. (More realistic datasets of tens-of-millions
# of words or more take proportionately longer.) If for some reason a BLAS library
# isn't available, training uses a fallback approach that takes 60x-120x longer,
# so even this tiny training will take minutes rather than seconds. (And, in that
# case, you should also notice a warning in the logging letting you know there's
# something worth fixing.) So, be sure your installation uses the BLAS-optimized
# Gensim if you value your time.
#
model.train(train_corpus, total_examples=model.corpus_count, epochs=model.epochs)

Expand Down
2 changes: 1 addition & 1 deletion docs/src/auto_examples/tutorials/run_doc2vec_lee.py.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7d0ee86f6eb9d1e2f55b9f295eec3060
581caa67e8496a210a030c2886fb8bbc
Loading

0 comments on commit 68fdbf9

Please sign in to comment.