AttributeError: module 'tensorflow.python.Schätzer.estimator_lib' hat kein Attribut 'LinearRegressor'

import tensorflow as tf
import numpy as np
feature_columns = [tf.feature_column.numeric_column("x", shape=[1])]
estimator = tf.estimator.LinearRegressor(feature_columns=feature_columns)

Mein code ist oben.
Es zeigt dann den Fehler

"AttributeError: module 'tensorflow.python.Schätzer.estimator_lib' hat kein Attribut 'LinearRegressor'"

Python 3.5.2

  • Vor dem gleichen problem hier. Python - 2.7.12 und Tensorflow version ist 1.4.1
InformationsquelleAutor CelineLi | 2017-08-22
Schreibe einen Kommentar