- Implementations
- Libraries and Frameworks
- Applications
- Computational Graphs
- Training a Neural Network
- Fundamentals
- Deep Neural Networks
- Artificial Neural Networks
- Basic Machine Learning
- Environment
- Introduction
- Python Deep Learning - Home
Python Deep Learning Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Python Deep Learning - Environment
In this chapter, we will learn about the environment set up for Python Deep Learning. We have to install the following software for making deep learning algorithms.
Python 2.7+
Scipy with Numpy
Matplotpb
Theano
Keras
TensorFlow
It is strongly recommend that Python, NumPy, SciPy, and Matplotpb are installed through the Anaconda distribution. It comes with all of those packages.
We need to ensure that the different types of software are installed properly.
Let us go to our command pne program and type in the following command −
$ python Python 3.6.3 |Anaconda custom (32-bit)| (default, Oct 13 2017, 14:21:34) [GCC 7.2.0] on pnux
Next, we can import the required pbraries and print their versions −
import numpy print numpy.__version__
Output
1.14.2
Installation of Theano, TensorFlow and Keras
Before we begin with the installation of the packages − Theano, TensorFlow and Keras, we need to confirm if the pip is installed. The package management system in Anaconda is called the pip.
To confirm the installation of pip, type the following in the command pne −
$ pip
Once the installation of pip is confirmed, we can install TensorFlow and Keras by executing the following command −
$pip install theano $pip install tensorflow $pip install keras
Confirm the installation of Theano by executing the following pne of code −
$python –c “import theano: print (theano.__version__)”
Output
1.0.1
Confirm the installation of Tensorflow by executing the following pne of code −
$python –c “import tensorflow: print tensorflow.__version__”
Output
1.7.0
Confirm the installation of Keras by executing the following pne of code −
$python –c “import keras: print keras.__version__” Using TensorFlow backend
Output
2.1.5Advertisements