Install Kears under Linux

Source: Internet
Author: User
Tags theano keras

1. First install Python, I install the pythoh2.7 version, installation steps

1) Enter in the terminal in turn
TAR–JXVF python-2.7.12.tar.bz2
CD Python-2.7.12
./configure
Make
Make install
2) Testing
Terminal input Python jump into editor
2. Install the Python Basic Development Kit
# 系统升级
sudo apt update
sudo apt upgrade
sudo apt install-y python-dev python-pip python-nose gcc g++ git gfortran vim
3. Install Operation Acceleration Library
sudo apt install-y libopenblas-Dev liblapack-Dev libatlas-base-Dev
4. Install the relevant development kit
Install PIP,sudo pip install-U--pre pip Setuptools Wheel
Install numpy,scipy, Matplotlib,scklearn Pack,sudo pip install-U--pre numpy scipy matplotlib scikit-learn scikit-image
Installationtheanosudo pip install -U --pre theano
安装kerassudo pip install -U --pre keras

5.keras Environment settings
1) Modify the default Keras backend in终端Input in:

gedit ~/.keras/keras.json

2) Configure the Theano file in the 终端 input:

       gedit ~/.theanorc
6.本人采用的是cpu加速,故在theanorc中输入
[global]
openmp=True
device = cpu
floatX = float32
allow_input_downcast=True
[blas] ldflags= -lopenblas








Install Kears under Linux

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.