Re: [scikit-learn] How to train an image classifier on directories

2018-01-14 Thread Joel Nothman
Why not just do the train_test_split over directory names, and later (e.g. in a Pipeline) read in the images? On 15 January 2018 at 10:18, Abdul Abdul wrote: > Hello, > > I'm trying to train an image classifier, but a bit confused on how to > label my data. The issue here is that for each class

[scikit-learn] How to train an image classifier on directories

2018-01-14 Thread Abdul Abdul
Hello, I'm trying to train an image classifier, but a bit confused on how to label my data. The issue here is that for each class I have subdirectories, each of which contains two images. So, it is not I have classes, and in each class I simply have the images that come under that class (i.e. cats