-the first line contains a list comprehension ([…]) that reads and sorts all files in the directory train
-the second uses the file name to build an array with labels the is o for cat an 1 for dog => this is the classes that the images will be classified against
Takes time to get used to fastai’s very compressed way of writing code but you will get used to it and appreciate i after many hours of head scratching
Thanks a lot @Kaspar.
Although it’s a very compressed way to write code, I love the fact that once I perfect it I will be able to write code lightning fast.
Can you, if you don’t mind please elaborate on ‘directory train’?
Thank you again.