`
文章目录
- 基础CNN网络
- 读取数据
- 卷积层
- 池化层
- 全连接层
- 模型配置
- 模型训练
- CNN变体网络
- 简单的深度网络
- 添加了其它功能层的深度卷积
- NIN网络
- 文本卷积
基础CNN网络
读取数据
import numpy as np
import tensorflow as tf
import tensorflow.keras as keras
import tensorflow.keras.layers as layers
import matplotlib.pyplot as plt
(x_train, y_train), (x_test, y_test) = keras.datasets.mnist.load_data()
print(x_train.shape, ' &