I am quite new to data science/python, and currently I am working on some deep learning algorithms where I would like to use one variable for both input and output data. I have 4 inputs and 1 output. I use the following structure:
samples = np.zeros(nb_samples, dtype=[('input', float, 4), ('output', float, 1)] )
and get the following warning, when I StandardScale, the array:
DeprecationWarning: Passing 1d arrays as data is deprecated in 0.17 and will raise
ValueError in 0.19. Reshape your data either using X.reshape(-1, 1) if your
data has a single feature or X.reshape(1, -1) if it contains a single sample.
I think the problem is that my structure looks like this:
[ [x0,x1,x2,x3], y0 ]
And it should look something like this:
[ [x0,x1,x2,x3], [y0] ]
I found some similar questions but none of the answers worked for me.
How can I solve this warning? And what is the exact problem?