Label_from_func(func_name, classes=[..])

Hi everyone,

I have a bunch of images in my train folder that I’m trying to label into a databunch. I wanted to use ImageList.from_folder and was looking to use label_from_func to label the images. The labels are dogs, cats. The images available in the train folder are as follows ‘001dog.jpg’,‘002cat.jpg’. I wanted to understand how label_from_func work ?