知识卡片
更多主题改善一个案例不构成定律
本章将主题数16增至32,展示部分分类指标改善,但仍未超过该例LSA的F1。结果依数据、拟合和切分,并且不同指标的胜负可能不同;不能推成主题分配总更差、更好或翻倍主题必翻倍质量。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
- · 从词数到语义分析
原书出处 · 1 处
- · 查看原书依据
4.5.4 A fairer comparison: 32 LDiA topics Let’s try one more time with more dimensions, more topics. Perhaps, LDiA isn’t as efficient as LSA, so it needs more topics to allocate words to. Let’s try 32 topics (components): >>> ldia32 = LDiA(n_components=32, learning_method='batch') >>> ldia32 = ldia32.fit(bow_docs) >>> ldia32_topic_vectors = ldia32.transform(bow_docs) >>> model_ldia32 = LinearDiscriminantAnalysis() >>> ldia32_performance =evaluate_model(ldia32_topic_vectors, ... comments.toxic, model_ldia32, 'LDA', 'LDIA (32d)') >>>
参考来源
- 位置:《Natural Language Processing in Action, Second Edition》第04章《从词数到语义分析》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Natural Language Processing in Action, Second Edition/_epub-src/OEBPS/Text/chapter-4.html)
- 结论依据:摘录中关于更多主题改善一个案例不构成定律的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。
- 原始内容:4.5.4 A fairer comparison: 32 LDiA topics Let’s try one more time with more dimensions, more topics. Perhaps, LDiA isn’t as efficient as LSA, so it needs more topics to allocate words to. Let’s try 32 topics (components): >>> ldia32 = LDiA(n_components=32, learning_method='batch') >>> ldia32 = ldia32.fit(bow_docs) >>> ldia32_topic_vectors = ldia32.transform(bow_docs) >>> model_ldia32 = LinearDiscriminantAnalysis() >>> ldia32_performance =evaluate_model(ldia32_topic_vectors, ... comments.toxic, model_ldia32, 'LDA', 'LDIA (32d)') >>>