eval_input_fn = tf.estimator.inputs.numpy_input_fn(
x={"x": val_data},
y=val_labels,
num_epochs=1,
shuffle=False)
Ac_eval_input_fn = tf.estimator.inputs.numpy_input_fn(
x={"x": Ac_val_data},
y=val_labels,
num_epochs=1,
shuffle=False)
出问题代码是这样的
这是问题 eval_input_fn = tf.estimator.inputs.numpy_input_fn(
AttributeError: module 'tensorflow_estimator.python.estimator.api._v2.estimator' has no attribute 'inputs'
求解答 !!
版本问题
试试
tf.compat.v1.estimator.inputs.pandas_input_fn
你得是什么版本的