MIND-Lab / OCTIS

OCTIS: Comparing Topic Models is Simple! A python package to optimize and evaluate topic models (accepted at EACL2021 demo track)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it okay to use OCTIS to evaluate topic models from other Python modules?

Zay-Ben opened this issue · comments

Let's say:

Z - the number of topics
W - the number of words (unique)
D - the number of documents

Given that OCTIS returns a dictionary containing a "topic-word-matrix" (a Z by W matrix), a list of "topics" (the top words for each topic), a "topic-document-matrix" (a Z by D matrix), and a "test-topic-document-matrix" (which can be initialized as a NumPy array containing an empty list), is it possible to convert the output of a topic model from another module into a similar format as the output of OCTIS in order to evaluate the topic model's performance using different metrics in OCTIS?

Thank you! :)

Hello :)
yes, you can evaluate the output of an external topic model using OCTIS metrics. You can refer to this issue for more details on how to do it: #61
Feel free to re-open the issue if you have further questions :)

Silvia