MCPcopy Create free account
hub / github.com/chinawithfrank/ChatBotCourse / predict

Function predict

tf_classify_demo/classify.py:45–47  ·  view source on GitHub ↗
(samples, sess, x, y, y_, train_step)

Source from the content-addressed store, hash-verified

43 saver.save(sess, 'data/model/model')
44
45def predict(samples, sess, x, y, y_, train_step):
46 x_s = samples.generate_xs('数据科学入门')
47 print(sess.run(tf.argmax(y, 1), feed_dict={x:x_s}))
48
49class MyServer(BaseHTTPRequestHandler):
50 def do_GET(self):

Callers

nothing calls this directly

Calls 1

generate_xsMethod · 0.80

Tested by

no test coverage detected