#Each element of the FeatureFolds and ClassesFolds is a matrex by itself
#the classes are 5000x1 each
#the features are 5000 by 800 each
def FindAllVectors(c):
testC= c
FeatureFolds = [f1, f2 ,f3 ,f4 ,f5 ,f6 ,f7 ,f8 ,f9 ,f10]
ClassesFolds = [f1c ,f2c ,f3c ,f4c ,f5c ,f6c ,f7c ,f8c ,f9c ,f10c]
arr = np.array([])
for x in range(0,10):
for y in range(0,5000):
if (ClassesFolds[x][y][0]== testC):
if (arr == []):
arr = np.array(FeatureFolds[x][y])
else:
arr = np.append((arr, np.array(FeatureFolds[x][y])))
d= arr.shape
return d
returns an error: TypeError: append() takes at least 2 arguments (1 given) Could anyone explain why?
And append does not add it as a new row?How could I fix that?