BERTopic icon indicating copy to clipboard operation
BERTopic copied to clipboard

.visualize_hierarchy() not showing different cluster colors

Open ttu-hq opened this issue 2 years ago • 1 comments

Hi Maarten,

I've been using BERTopic for a while and it's an amazing resource! Thank you for all your hard work. I'm wondering if you can help me with an apparent issue I'm seeing:

After updating to the latest version of BERTopic, I'm finding that the .visualize_hierarchy() function is not showing different cluster colors as it used to. I've checked my plotly installation and it's a supported version. Color_threshold is set to default. Not sure what I'm doing wrong. I've attached the PNG of the plot. Any suggestions/advice are greatly appreciated!

newplot

ttu-hq avatar Aug 03 '22 16:08 ttu-hq

It might be worthwhile to play around with the different values for color_threshold. As a default, it is set to 1, so perhaps setting it to 0.5 or 2 changes the results.

MaartenGr avatar Aug 04 '22 08:08 MaartenGr

Due to inactivity, I'll be closing this for now. Let me know if you have any other questions related to this and I'll make sure to re-open the issue!

MaartenGr avatar Sep 27 '22 08:09 MaartenGr