YangWangsky / tf_EEGLearn

A tensorflow implementation for EEGLearn
MIT License
77 stars 31 forks source link

save Predictions #6

Closed GulrukhTurabee closed 5 years ago

GulrukhTurabee commented 5 years ago

Hello

I am trying to save predictions ( predicted values and true values) either as .mat file or .npy file. however, i can't find on the internet how can i saved in tensorflow? can you help me with that?

Thank You

YangWangsky commented 5 years ago

The variable pred in summary, pred, av_test_err, av_test_acc = sess.run([test_summary_op, prediction, _loss, accuracy], could be directly operated by python, you can concat it with y_test and save as .csv, .mat or .npy.