reshape(-1,1) ??? it works, but why?
It creates a second dimension and therefore gets a data matrix of shape (n_samples, 1)
from a 1d-vector of shape (n_samples,)
.
1 Like
thanks for sharing! This is a great thread with detailed explanation. Clarified how reshape works to me.