Deep-Convolution-Stock-Technical-Analysis
Deep-Convolution-Stock-Technical-Analysis copied to clipboard
about trained model
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
If you need to train it more, use load_model. If you need predictions, use model.predict
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?