Keras is a minimalist, highly modular neural networks library, written in Python and capable of running on top of either TensorFlow or Theano. It was developed with a focus on enabling fast experimentation. Being able to go from idea to result with the least possible delay is key to doing good research.
使用pip安装keras包,安装过程会自动下载安装theano。
>>> pip install keras
但是在导入keras运行代码的时候,出现如下警告:
WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will default to Python implementations. Performance will be severely degraded. To remove this warning, set Theano flags cxx to an empty string.
从http://www.cnblogs.com/anyview/p/5063189.html这篇博客中找到了解决办法: