In the project of svm that is image classification using svm

there is a link of my code:108363.
i am getting the error in my last line of the code.
my error is like this-
KeyError Traceback (most recent call last)
in ()
----> 1 data = classWiseData(image_data,labels)

in classWiseData(x, y)
6
7 for i in range(x.shape[0]):
----> 8 data[y[i]].append(x[i])
9
10 data[i] = []

KeyError: ‘Datasets/Images/horse’

hi @agarwalp
the folder path u must have passed in the code is not exsisting
try using
“./Datasets/Images/horse”