Skip to content

Latest commit

 

History

History
48 lines (25 loc) · 1.12 KB

README.md

File metadata and controls

48 lines (25 loc) · 1.12 KB

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