Comments (5)
Let me know if my latest push resolves this. It worked for me, and should support all of the class modules.
from t81_558_deep_learning.
Thanks for the good work.
I attempted to modify my "tensorflow" environment in Anaconda by uninstalling my keras 2.2.4, and the previous tensorflow version (2.0 beta), and then installing the new packages. I dont know if this is the way its supposed to be done, but here is what i did in the anaconda prompt:
pip uninstall tensorflow
pip uninstall keras
pip install --exists-action i --upgrade tf-nightly-2.0-preview
pip install --exists-action i --upgrade keras-rl2
This executed without error.
after this, I tried one of the notebooks that imported tensorflow. Executing the line
import tensorflow
yields the error "no module named tensorflow"
previously, tensorflow was imported correctly, and I could run the notebooks
from t81_558_deep_learning.
This will be fun until TensorFlow 2.0 is official and everything has stabilized to that. I updated the install instructions a bit, I tried several installs from scratch and I believe this is the best set of instructions that gets both TF/Keras 2.0 and Keras Reinforcement working together. I also tested successfully on Mac/Windows.
Below is the complete script that I've run several times. I would suggest installing from a new environment.
Note that my env is named wustl2. Also the second line changes to "activate wustl2" if on Windows. I tried in both. GitHub is also up to date for this. Let me know if this helps any.
conda create -y --name wustl2 python=3.6
source activate wustl2
conda install -y jupyter
conda install -y scipy
pip install --exists-action i --upgrade sklearn
pip install --exists-action i --upgrade pandas
pip install --exists-action i --upgrade pandas-datareader
pip install --exists-action i --upgrade matplotlib
pip install --exists-action i --upgrade pillow
pip install --exists-action i --upgrade tqdm
pip install --exists-action i --upgrade requests
pip install --exists-action i --upgrade h5py
pip install --exists-action i --upgrade pyyaml
pip install --exists-action i --upgrade tensorflow_hub
pip install --exists-action i --upgrade bayesian-optimization
pip install --exists-action i --upgrade spacy
pip install --exists-action i --upgrade gensim
pip install --exists-action i --upgrade flask
pip install --exists-action i --upgrade gym
pip install --exists-action i --upgrade tf-nightly-2.0-preview
pip install --exists-action i --upgrade keras-rl2 --user
python -m ipykernel install --user --name wustl2 --display-name "Python 3.6 (wustl2)"
conda update -y --all
from t81_558_deep_learning.
It works as advertised.... today that is, lets see about tomorrow.
You are doing absolutely awesome work. Its a pleasure to read and learn from.
from t81_558_deep_learning.
You are most welcome! Let me know if you run into anything else. I just need to code 2 more modules for the class and then I plan to completely rerun and retest everything in a few weeks just before class starts. It would be really nice if Google could release TF 2.0 prior to Aug 26 before I start the class, but we will see!
from t81_558_deep_learning.
Related Issues (20)
- remove 'env' from 'conda env create...' in installation guide HOT 1
- A small mistake in 03_2_keras HOT 1
- Keras needs to be replaced with PyTorch in 3_3 HOT 1
- Running Early Stopping with Classification on an M1 Max early stop is not triggered HOT 2
- Running instalation step by step HOT 3
- t81_558_class_07_2_train_gan source file HOT 1
- Error: failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected HOT 2
- Error: update_endpoint is a no-op in sagemaker>=2. See: https://sagemaker.readthedocs.io/en/stable/v2.html for details. HOT 1
- Trying to install conda environment from yml file fails. Manual installation works fine HOT 1
- Runtime error with import keras in notebook 6.2 HOT 1
- Random AssertionErrors & Output stops working HOT 2
- Error when fit model executes HOT 2
- regarding pytorch branch folder install file torch.yml (not sure if it is an issue) HOT 1
- CuDNN version conflict after following WSL install instructions HOT 1
- typo in module 2, part 2.5 HOT 1
- keras version info error
- GPU Accelaretaing for non-NVIDIA GPU devices
- t81_558_class_07_2_train_gan.ipynb - Can't install tensorflow 1.8 anymore HOT 1
- tensorflow > 2.14 no longer supports tf.keras.__version__, causes error in notebook
- install/tensorflow-install-march-2023.ipynb
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from t81_558_deep_learning.