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

Method transform

recommenders/rbm_tf_k.py:226–230  ·  view source on GitHub ↗
(self, X)

Source from the content-addressed store, hash-verified

224 return tf.nn.softmax(self.forward_logits(X))
225
226 def transform(self, X):
227 # accepts and returns a real numpy array
228 # unlike forward_hidden and forward_output
229 # which deal with tensorflow variables
230 return self.session.run(self.p_h_given_v, feed_dict={self.X_in: X})
231
232 def get_visible(self, X):
233 return self.session.run(self.output_visible, feed_dict={self.X_in: X})

Callers 5

play_one_episodeFunction · 0.45
play_one_episodeFunction · 0.45
play_one_episodeFunction · 0.45
get_transformed_dataFunction · 0.45
play_one_episodeFunction · 0.45

Calls 1

runMethod · 0.45

Tested by

no test coverage detected