作者:禅与计算机程序设计艺术
1.简介
Keras是什么?
Keras是一个基于TensorFlow、Theano或CNTK的快速、可移植且易于使用的开源机器学习库。它可以用来构建深度学习模型,并支持Python、JavaScript、Julia等多种语言。它的主要特点包括:
- 支持GPU计算加速
- 模型定义及编译简单
- 提供了现成的预训练模型,极大地简化了开发流程
其官网介绍:Keras is a high-level neural networks API, written in Python and capable of running on top of TensorFlow, CNTK, 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.
Keras在技术上属于一个有机整体,由五大模块构成:
- Layers模块:封装了基础神经网络层(dense, convolutional, recurrent, pooling, merge…);
- Models模块:提供方便的接口用于搭建复杂的神经网络模型;
- Utils模块:提供了一些实用工具函数;
- Applications模块:集成了