Numpy coding (unable to understand numpy code) :
I am not able to understand this axis parameter in the below mention code.()
def splitDataSet(dataSet, axis, value):
retDataSet = []
for featVec in dataSet:
if featVec[axis] == value:
reducedFeatVec = featVec[:axis]
reducedFeatVec.extend(featVec[axis+1:])
retDataSet.append(reducedFeatVec)
return retDataSet
Ref Book - Machine learning in action(Decision Tree Algorithms – page no 43)