1
Gibt es eine Möglichkeit, die Theano-Graphendarstellung eines Sequential-Modells in Keras auszudrucken?Theano-Grafikdruck in Keras
ein einfaches Modell wie folgt gegeben:
model = Sequential()
model.add(Dense(input_dim=100,
output_dim=50,
W_regularizer=l2(0.0001),
init='he_normal',
activation='tanh'))
model.add(Dense(input_dim=50,
output_dim=1,
W_regularizer=l2(0.0001),
init='he_normal',
activation='sigmoid'))
sgd = SGD(lr=0.01, decay=1e-7, momentum=.9)
model.compile(loss='binary_crossentropy', optimizer=sgd, metrics=["accuracy"])
ich ausführen möchten:
theano.printing.debugprint(model)
mich so etwas zu geben (von Theano Tutorial genommen):
Elemwise{mul,no_inplace} [id A] ''
|TensorConstant{2.0} [id B]
|x [id C]
Ich hoffe, dass die Grafik hilft, die Ausgabe von Theano Profiler zu verstehen.
Keras Version 1.0, Theano Version 0.8.1.