estimator.predict raises “ValueError: None values not supported”
问题 So I basically copypasted the code from the tensorflow tutorial adapted to this model: Which tries to model a neural network to identify "stairs" shape, as it shows here: (source: gormanalysis.com) import numpy as np import tensorflow as tf import _pickle as cPickle with open("var_x.txt", "rb") as fp: # Unpickling var_x = cPickle.load(fp) with open("var_y.txt", "rb") as fp: # Unpickling var_y = cPickle.load(fp) # Declare list of features, we only have one real-valued feature def model_fn