Reputation: 990
I have trained a Regression Model using tensorflow. The model saved file like
Now if i want to use those file to predict output values from new data set (test data), how can i do that?
Upvotes: 0
Views: 70
Reputation: 741
sess=tf.Session()
#First load meta graph and restore weights
saver = tf.train.import_meta_graph('model.ckpt-4000.meta')
saver.restore(sess,tf.train.latest_checkpoint('./'))
# create feed-dict to feed new data and specify the y variable to be evaluated
sess.run(y,feed_dict)
Upvotes: 1