Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/p/y/python-nlp-HEAD/nlp/test-maxent.py   python-nlp(Download)
	def test_fast_slow_equal(self):
		slow_logp = maximumentropy.slow_log_probs(self.features, self.weights, self.labels)
 
		self.assertEqual(self.logp, slow_logp)
 
		start = time.time()
		for i in xrange(100000):
			test = maximumentropy.slow_log_probs(self.features, self.weights, self.labels)
 
		slow_time = time.time() - start