We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example code for Keras:
@nut_function def GetActivations(batch, model, layer, istrain=1): from keras import backend as K
f = K.function([model.input, K.learning_phase()], [model.get_layer(layer).output]) return f([batch[0], istrain])
build_batch >> GetActivations(network.model) >> FlattenCol(0) >> Collect()
Having a network function for it would be nice, e.g. build_batch >> network.activation('layername') >> Collect()
The text was updated successfully, but these errors were encountered:
Relevant lasagne function: http://lasagne.readthedocs.io/en/latest/modules/layers/helper.html#lasagne.layers.get_output
Sorry, something went wrong.
maet3608
No branches or pull requests
Example code for Keras:
@nut_function
def GetActivations(batch, model, layer, istrain=1):
from keras import backend as K
build_batch >> GetActivations(network.model) >> FlattenCol(0) >> Collect()
Having a network function for it would be nice, e.g.
build_batch >> network.activation('layername') >> Collect()
The text was updated successfully, but these errors were encountered: