-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add explicit multi-label classification support
Two methods have been added to the ``SS3`` class. One to perform multi-label classification (``classify_multilabel``) using k-means clustering on the confidence vector to select the proper (cluster with) category labels. Additionally, to be consistent, a second method (``classify_label``) was added to provide the (standard) single label classification counterpart. Thus, calling ``ss3.classify_multilabel(aDocument)`` would return the list of labels (.g. ["technology", "business"]) to be associated with this document (``aDocument``) according to SS3. Whereas ``ss3.classify_label(aDocument)`` would return only a single label (e.g. "technology").
- Loading branch information
1 parent
0984f2e
commit 0759bca
Showing
1 changed file
with
112 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters