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:
You want a csv file like that:
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()