MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / forward_logits

Method forward_logits

unsupervised_class2/rbm_tf.py:108–110  ·  view source on GitHub ↗
(self, X)

Source from the content-addressed store, hash-verified

106 return tf.nn.sigmoid(tf.matmul(X, self.W) + self.c)
107
108 def forward_logits(self, X):
109 Z = self.forward_hidden(X)
110 return tf.matmul(Z, tf.transpose(a=self.W)) + self.b
111
112 def forward_output(self, X):
113 return tf.nn.sigmoid(self.forward_logits(X))

Callers 2

buildMethod · 0.95
forward_outputMethod · 0.95

Calls 1

forward_hiddenMethod · 0.95

Tested by

no test coverage detected