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

Method transform

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

Source from the content-addressed store, hash-verified

113 return tf.nn.sigmoid(self.forward_logits(X))
114
115 def transform(self, X):
116 # accepts and returns a real numpy array
117 # unlike forward_hidden and forward_output
118 # which deal with tensorflow variables
119 return self.session.run(self.p_h_given_v, feed_dict={self.X_in: X})
120
121
122def main():

Callers 2

gaussian_nb.pyFile · 0.45

Calls 1

runMethod · 0.45

Tested by

no test coverage detected