'raw training dataset split into feature and target for basic neural networks
I am building a neural network model where I'm using a raw txt file training dataset that I'd like to split into features and target, I have used these lines of coding
xtrain = train_data[:,:4]
ytrain = train_data[:,:4]
in which resulted in an error
IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed
my training dataset looks something like this enter image description here
is there any other way that enables me to split this kind of training data?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
