Skip to content

aslanreut/label

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

How to label the data for supervised learning

For supervised learning you may often need a csv file with the filenames and labels. Just look at the following example.

You have a folder with files:

Your data

You want a csv file like that:

Csv file

Take the following steps:

pip install label

If you haven't already installed pandas and glob, also run:

pip install pandas glob3

and if you use python2:

pip install pandas glob2

You can then start the python interpreter from the terminal typing:

python

Then within the Python interpreter, you can use the label package:

from label import create_csv

and start the step-by-step instruction typing:

create_csv()

Screenshot 1

Screenshot 2

Screenshot 3

Screenshot 4

Screenshot 5

Screenshot 6

About

pip install label

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages