Deep-Convolution-Stock-Technical-Analysis icon indicating copy to clipboard operation
Deep-Convolution-Stock-Technical-Analysis copied to clipboard

about trained model

Open danielctl opened this issue 5 years ago • 2 comments

I have already trained and saved checkpoints, but can you show me how to use the checkpoint to use the trained model? Sorry I am new to python and CNN

danielctl avatar Jun 18 '19 16:06 danielctl

If you need to train it more, use load_model. If you need predictions, use model.predict

Tolkoton avatar Jun 19 '19 08:06 Tolkoton

My problem is: I have train my model and saved checkpoint, but I don't know how to load its checkpoints and use it to predict.

For example, I load the checkpoints

with tf.Session(config=config) as sess: sess.run(tf.global_variables_initializer()) saver = tf.train.import_meta_graph('checkpoints/stocks_model.ckpt-30001.meta') saver.restore(sess,tf.train.latest_checkpoint('checkpoints/'))

But how can I use checkpoint result to predict?

danielctl avatar Jun 20 '19 07:06 danielctl