Cannot get predictions of tensorflow DNNClassifier

前端 未结 5 1508
无人及你
无人及你 2021-01-05 13:24

I\'m using the code from the MNIST tutorial:

feature_columns = [tf.contrib.layers.real_valued_column(\"\", dimension=4)]
classifier = tf.contrib.learn.DNNCla         


        
5条回答
  •  不思量自难忘°
    2021-01-05 14:28

    What you received and saved to ds_predict_tf is a generator expression. To print it you can do:

    for i in ds_predict_tf:
        print i
    

    or

    print(list(ds_predict_tf))
    

    You can read more about genexpr here.

提交回复
热议问题