I have code where the path is this:
tr_path = "Folds_Raw/"+fold+"/Train/*.data"
I suppose it takes all the files from the path. I putted ".csv" file, ".npy" file, ".txt" file, ".xlsx" file but it does not take any of it. Let me first put my directory screen shot:
Now when I debug the line code here tr_paths = glob.glob(tr_path, recursive=True). It shows empty [ ] list. I am confused what actually this lines of code is doing?
tr_paths = glob.glob(tr_path, recursive=True)
It only take the files that end with the extension ".data"
You should change:
With:
tr_path = "Folds_Raw/"+fold+"/Train/*.*"
And it will take all files.
2.1m questions
2.1m answers
60 comments
56.8k users