This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
Load data from csv file with pandas and feed to NN models #19702
Unanswered
LewsTherin511
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm having a problem in loading correctly a .csv file to use as input for a very simple dense NN model.
The csv file contains all the input features and a 'target' column, to use as output for regression.
This is what I'm doing so far:
`
I was getting the error:
mxnet.base.MXNetError: [16:09:03] src/operator/numpy/linalg/./../../tensor/../elemwise_op_common.h:135: Check failed: assign(&dattr, vec.at(i)): Incompatible attr in node at 1-th input: expected float64, got float32
So, I tried converting the data by switching the np.float64 to np.float32, but the I get:
File "/home/lews/anaconda3/envs/gluon/lib/python3.7/site-packages/mxnet/gluon/block.py", line 1136, in forward raise ValueError('In HybridBlock, there must be one NDArray or one Symbol in the input.' ValueError: In HybridBlock, there must be one NDArray or one Symbol in the input. Please check the type of the args.
What is the correct way to load this data?
Beta Was this translation helpful? Give feedback.
All reactions