Skip to content

Commit 534dac3

Browse files
author
Chris Swierczewski
committed
Minor LDA parameter adjustment
In some random examples there aren't enough "bad" inference output. We readjust the error bounds on plotting example documents.
1 parent e06c514 commit 534dac3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scientific_details_of_algorithms/lda_topic_modeling/LDA-Science.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,11 +1146,11 @@
11461146
"source": [
11471147
"N = 6\n",
11481148
"\n",
1149-
"good_idx = (l1_errors < 0.1)\n",
1149+
"good_idx = (l1_errors < 0.05)\n",
11501150
"good_documents = payload_documents[good_idx][:N]\n",
11511151
"good_topic_mixtures = inferred_topic_mixtures[good_idx][:N]\n",
11521152
"\n",
1153-
"poor_idx = (l1_errors > 0.4)\n",
1153+
"poor_idx = (l1_errors > 0.3)\n",
11541154
"poor_documents = payload_documents[poor_idx][:N]\n",
11551155
"poor_topic_mixtures = inferred_topic_mixtures[poor_idx][:N]"
11561156
]

0 commit comments

Comments
 (0)