2017-01-27 22 views
1

私はtheanoのタイプに苦しんでいます。Keras/Theanoの出力

私は実際の出力番号をゲットするにはどうすればよい

final_model.get_output([x,x]) 
>>> sigmoid.0 

をしようとすると、私は最後の層が

final_model.add(Dense(1, activation='sigmoid')) 

あるKeras、中にいくつかのSequentialモデルを作成しましたか? 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)>)

答えて

2

になります。

入力値の配列を指定すると、final_model.predict(input)を使用して予測の配列を取得できます。この関数を使用して、複数の入力値を予測することができます。

+0

ありがとうございます!正確に私が必要としたもの – cubeception