-
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 multilebel support to the Live Test tool (#9)
The Live Test Tool now supports multi-label classification when ``Live_Test.run(x_test, y_test)`` is called with a ``y_test`` with multiple labels. In addition, now the Live Test can be called without a ``y_test``, for instance, to try out some documents with no labels. That is, now these two are valid: ``` docs = ["the 1st document", "the 2nd document", "the 3rd document"] Live_Test.run(clf, docs) # no labels (y_test) ``` and ``` x_test = ["the 1st document", "the 2nd document", "the 3rd document"] y_test = [["labelA", "labelB"], ["labelA"], ["labelC", "labelB"]] Live_Test.run(clf, x_test, y_test) # multi-label y_test ``` Are supported. The multi-label supports was implemented following the steps given in #9, currently implementation covers Step 1 and 2. Document Percentage given in Step 2 were finally computed using the label-based accuracy (a.k.a the "hamming score"). Resolves: #9
- Loading branch information
1 parent
4ec009a
commit 15657ee
Showing
10 changed files
with
149 additions
and
73 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
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
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
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
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
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
Oops, something went wrong.