Responsive Ads Here

Tuesday, 30 May 2017

How to install keras?

Step 1: First we need to install few dependencies like,

$ pip install numpy scipy
$ pip install scikit-learn
$ pip install pillow
$ pip install h5py


Step 2: Install theano
$ git clone https://github.com/Theano/Theano
$ cd Theano
$ python setup.py install

Step3: Install keras
$ pip install keras

Step 4: Changing backend from tensorflow to theano
$ gedit ~/.keras/keras.json

Then edit backend to theano.
{
    "image_dim_ordering": "tf",
    "epsilon": 1e-07,
    "floatx": "float32",
    "backend": "theano"
}

No comments:

Post a Comment