Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to cap the maximum number of topics generated? #4

Closed
arikanev opened this issue May 25, 2023 · 2 comments
Closed

How to cap the maximum number of topics generated? #4

arikanev opened this issue May 25, 2023 · 2 comments

Comments

@arikanev
Copy link

Hi, how do I put a limit on the maximum number of topics to be generated? And a minimum? Is there a way to do this within the hyper parameter optimization?

Thanks,
Ari

@dborrelli
Copy link
Owner

Hi,
Yes, you can do this by setting the label_lower and label_upper parameters. Check out the tutorial notebook for an example: https://github.com/dborrelli/chat-intents/blob/main/notebooks/chatintents_tutorial.ipynb.

@arikanev
Copy link
Author

arikanev commented Jul 7, 2023

Hi, it doesnt seem to work. I have label_upper = 15, and sometimes it generates upwards of 300 labels.

(BTW, great work!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants