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

Method log_likelihood

hmm_class/hmmd_tf.py:50–51  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

48 return self.session.run(self.cost, feed_dict={self.tfx: x})
49
50 def log_likelihood(self, x):
51 return -self.session.run(self.cost, feed_dict={self.tfx: x})
52
53 def get_cost_multi(self, X):
54 return np.array([self.get_cost(x) for x in X])

Callers 1

scoreMethod · 0.45

Calls 1

runMethod · 0.45

Tested by

no test coverage detected