I am using numpy.
I have one array Y and one matrix X. This is for a regression. They arrays has labels, e.g. 0,1,2,3,4,5. I need to create a new array that has label 0 removed for all rows and the corresponding row in X removed as well. What is the most efficient means to do this?
e.g.
for i in xrange(y.shape):
if y==0:
pop y pop X