chtmp223 / topicGPT

Code & Prompts for TopicGPT: A Prompt-Based Framework for Topic Modeling
188 stars 29 forks source link

Required code of harmonic mean of Purity and Inverse Purity #2

Closed forthewebsites1 closed 6 months ago

forthewebsites1 commented 6 months ago

Hi,

I was going through your paper TopicGPT and came across the matrix through which you've done evaluation -

harmonic mean of Purity and Inverse Purity - (equation/formula attached)

Can you pls provide it's code? (I can't find in in your repo)

Screenshot 2023-12-15 at 1 40 17 PM
chtmp223 commented 6 months ago

Hello!

I added a commit to do this: a42a7f0. You can find the code to calculate the harmonic purity between two sets of clusterings at the bottom of the utils.py file.