MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / ANN

Function ANN

rl3/ddpg.py:25–28  ·  view source on GitHub ↗
(x, layer_sizes, hidden_activation=tf.nn.relu, output_activation=None)

Source from the content-addressed store, hash-verified

23
24# simple feedforward neural net
25def ANN(x, layer_sizes, hidden_activation=tf.nn.relu, output_activation=None):
26 for h in layer_sizes[:-1]:
27 x = tf.layers.dense(x, units=h, activation=hidden_activation)
28 return tf.layers.dense(x, units=layer_sizes[-1], activation=output_activation)
29
30
31# get all variables within a scope

Callers 1

CreateNetworksFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected