I think this is very trivial question but hopefully someone can help me out. What's the best way to split an array that contains both predictors (inputs) and the response variable (output)?
I imported a csv file with both predictors and the response, but I'd like to split it so that the predictors are in a numpy matrix (n X m) and the response is in a vector (n X 1). Any thoughts?
Thanks.