stefan-jansen / machine-learning-for-trading

Code for Machine Learning for Algorithmic Trading, 2nd edition.
https://ml4trading.io
13.33k stars 4.21k forks source link

tensorflow and matplotlib version look incompatible #104

Closed sungyunglim closed 3 years ago

sungyunglim commented 3 years ago

using ml4t-dl dock container to run deep learning (01) and (02) codes. It works for 01_build_and_train_feedforward_nn but does not work for 02_how-to-use-tensorflow because a module of tensorflow-estimator (2.2.0) is no recognized (I forget writing down the specific error. I would try again to find this). The solution suggested at a website is to downgrade tensorflow-estimator 2.1.0. When I do this, I experience a new error that matplotlib is not recognized. Did you experience this kind of error before ?

Now, I'm trying to upgrade to tensorflow 2.2.0 but this attempt looks failing due to some dependencies.

I read your book without running scripts. Now I'm attempting to run some from deep learning chapter. I appreciate for your effort to detail financial machine learning. I've learned a lot.

stefan-jansen commented 3 years ago

Thank you. There's indeed a problem with the ml4t-dl environment as you discovered. Sorry about that, not sure how the wrong versions got on the image, the local environment file I have lists TF 2.2 as expected. I'll update in the next couple of days.