keras官网:https://keras.io/api/models/
创建keras 模型有三种方法:Sequential model、Functional API、Model subclassing (初学者常用Sequential model)
There are three ways to create Keras models:
- The Sequential model, which is very straightforward (a simple list of layers), but is limited to single-input, single-output stacks of layers (as the name gives away).
- The Functional API, which is an easy-to-use, fully-featured API that supports arbitrary model architectures. For most people and most use cases, this is what you should be using. This is the Keras "industry strength" model.
- Model subclassing, where you implement everything from scratch on your own. Use this if you have complex, out-of-the-box research use cases.
后续补充。。。。。