Continuation from previous question: Tensorflow - TypeError: 'int' object is not iterable
My training data is a list of lists each comprised of 1000 floats. F
You may want to check data types in input data set or array and than convert it to float32:
float32
train_X[:2, :].view() #array([[4.6, 3.1, 1.5, 0.2], # [5.9, 3.0, 5.1, 1.8]], dtype=object) train_X = train_X.astype(np.float32) #array([[4.6, 3.1, 1.5, 0.2], # [5.9, 3. , 5.1, 1.8]], dtype=float32)