Skip to content

binarymax/multilabel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MultiLabel

Multi-hot label encoding for NumPy

Add labels to set, and combine them to form multihot encoded numpy arrays.

Usage

import numpy as np
import multilabel as ml

labels = ml.MultiLabel()
labels.add("news")
labels.add("tech")
labels.add("law")
labels.add("culture")
labels.add("politics")
labels.add("linux")
labels.add("python")

print(labels.combine(["news","python"]))
#> [ 1.  0.  0.  0.  0.  0.  1.]

About

Multi-hot label encoding for NumPy

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages