問題タブ [tensorflow-estimator]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
707 参照

python - estimator.predict テンソルの出力に関する問題

私は現在 tf 1.4 を使用していますが、tf.contrib.factorization.KMeansClustering推定器の予測を調べるのに助けが必要です。現在のコード セグメントは次のようになります。

body と tst はパンダのデータフレームです。print(y)与えます:

print(list(y))そして、 を呼び出す、print(next(y))または y を反復するなど、検索したことを試してみます。

など、エラーが発生しますTypeError: data must be either a numpy array or pandas DataFrame if pandas is installed; got dict。これをオンラインで試して印刷する他の方法が見つかりません。ありがとう