Skip to content

Multilabel Encoding. Found out about this concept while checking out Alexey Grigorev's free ML course. Decided to explore it (^_^ )

Notifications You must be signed in to change notification settings

gift-exe/MultiLabel-Encoding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Tool For Encoding Multilabeled Columns

How to use:


The MultiLabelEncoder class from main.py, takes care of encoding the multilabeled column.

To use, create a MultiLabelEncoder object, parameters are:

multilabel_column type: pd.Series
unique_labels type:set [optional]
delimiter type:str [optional]

As of 22.07.2024 the Encoder works best on csv files, where the columns are strings.
Typically looking like this:

TAGS
"Factory Tuner,Luxury,High-Performance"
"Luxury,Performance"
"Luxury,High-Performance"

Here the delimiter is a comma ','

For sample usage, check out thte mlc.ipynb notebook Thank you (^_^ )

About

Multilabel Encoding. Found out about this concept while checking out Alexey Grigorev's free ML course. Decided to explore it (^_^ )

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published