Converting from Pandas dataframe to TensorFlow tensor object

后端 未结 6 524
灰色年华
灰色年华 2020-12-31 02:48

I\'m still new to Python, Machine Learning and TensorFlow, but doing my best to jump right in head-first. I could use some help though.

My data is currently in a Pan

6条回答
  •  感情败类
    2020-12-31 03:25

    You can use tf.estimator.inputs.pandas_input_fn in your make_input_fn(X, y, num_epochs) function. I've not managed to get it to work with a multi-index, however. I fixed this issue by turning it into a standard integer index, using df.reset_index(drop=True)

提交回复
热议问题