Keras

Keras Backend Configuration

Keras Backend Configuration

This chapter will help you to configure the backend implementation of Keras. It includes the installation of TensorFlow and Theano. Let us install these two libraries and configure them for the backend implementation:

To install TensorFlow, you will be required to use the following command:

pip install TensorFlow

After the successful installation of TensorFlow, you are required to do the following configurations in the keras.json file:

{ 
   "image_data_format": "channels_last", 
   "epsilon": 1e-07, "floatx": "float32", "backend": "tensorflow" 
}

After that, you can install Theano with the below command:

pip install theano

Next, the keras.json file will have the following configurations:

{ 

 

{ 
   "image_data_format": "channels_last", 
   "epsilon": 1e-07, 
   "floatx": "float32", 
   "backend": "theano" 
}

Now, you’re all done with installation and configurations. And you can start Keras with the help of the command given below:

>>>import keras a krs

Top course recommendations for you

    JQuery Tutorial
    1 hrs
    Beginner
    10.9K+ Learners
    4.41  (543)
    What is IoT?
    1 hrs
    Beginner
    29.6K+ Learners
    4.46  (2187)
    Mongodb Tutorial
    2 hrs
    Beginner
    20.1K+ Learners
    4.58  (1106)
    Android App with Python
    2 hrs
    Beginner
    30.2K+ Learners
    4.44  (726)
    JavaScript Projects
    2 hrs
    Intermediate
    35.6K+ Learners
    4.52  (1280)
    HTML Attributes and Tags
    2 hrs
    Beginner
    46.5K+ Learners
    4.58  (2499)
    HTML Tutorial
    6 hrs
    Intermediate
    52.4K+ Learners
    4.5  (1226)
    CSS Properties
    2 hrs
    Beginner
    22K+ Learners
    4.51  (948)
    CSS Tutorial
    2 hrs
    Intermediate
    37.7K+ Learners
    4.54  (1794)
    Broadband Database Management System
    2 hrs
    Intermediate
    8.1K+ Learners
    4.5  (143)