Replies: 1 comment
-
Yes, the adaptive classifier is well-suited for your use case! I have created an example Google colab notebook to show how it can be done. The MultiLabelClassifier class wraps the base AdaptiveClassifier and adds multi-label support through:
For training:
For prediction:
You can adjust the thresholds based on your needs:
You can do something similar for your use-case: # Initialize with suitable thresholds
classifier = MultiLabelClassifier(
threshold=0.1, # Lower threshold allows more categories
min_probability_diff=0.05 # Similar probabilities grouped together
)
# Train with your existing categorized requests
classifier.add_examples(historical_requests, historical_categories)
# Use for new requests
predictions = classifier.predict("New customer request text") |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, we are looking for a tool to assiging categories to incoming customer request. Since categories can be added at later times, this looks like the perfect approach for the usecase.
The question is if we can use this for assisgning multiple arguments either using the predicted probablities and taking the ones with simlar value and/or above a threshold or adapting this using the multilabel classification task for the model ( if even possibile )
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions