Keras/Theano 输出
Keras/Theano output
我正在与 theano 类型作斗争。
我在 Keras 中创建了一些 Sequential
模型,最后一层是
final_model.add(Dense(1, activation='sigmoid'))
当我尝试时
final_model.get_output([x,x])
>>> sigmoid.0
我怎样才能得到实际输出的数字?
我尝试使用 output.eval()
resp。 output[0][0].eval()
但这只会导致
theano.gof.fg.MissingInputError: ("An input of the graph, used to compute Shape(<TensorType(int32, matrix)>), was not provided and not given a value.Use the Theano flag exception_verbosity='high',for more information on this error.", <TensorType(int32, matrix)>)
不要淹死在一杯水上。
给定一组输入值,您可以只使用 final_model.predict(input) 来获得一组预测。请注意,此函数可用于预测不止一组输入值。
我正在与 theano 类型作斗争。
我在 Keras 中创建了一些 Sequential
模型,最后一层是
final_model.add(Dense(1, activation='sigmoid'))
当我尝试时
final_model.get_output([x,x])
>>> sigmoid.0
我怎样才能得到实际输出的数字?
我尝试使用 output.eval()
resp。 output[0][0].eval()
但这只会导致
theano.gof.fg.MissingInputError: ("An input of the graph, used to compute Shape(<TensorType(int32, matrix)>), was not provided and not given a value.Use the Theano flag exception_verbosity='high',for more information on this error.", <TensorType(int32, matrix)>)
不要淹死在一杯水上。
给定一组输入值,您可以只使用 final_model.predict(input) 来获得一组预测。请注意,此函数可用于预测不止一组输入值。