人工智能
Cassius_Zeo
这个作者很懒,什么都没留下…
展开
-
keras 卷积网络识别CIFAR-10图像
import tensorflow as tfimport tensorflow.kerasfrom tensorflow.keras.datasets import cifar10import numpy as npfrom tensorflow.keras.utils import to_categoricalnp.random.seed(10)(x_img_train, y_label_train), \(x_img_test, y_label_test) = cifar10.load原创 2020-11-10 18:09:26 · 442 阅读 · 3 评论 -
fashion-mnist
import tensorflow as tfimport tensorflow.kerasfrom tensorflow.keras.datasets import fashion_mnistimport numpy as npimport pandas as pdimport matplotlib.pyplot as pltfrom tensorflow.keras.utils import to_categorical#np.random.seed(10)(train_images,原创 2020-11-10 17:59:44 · 162 阅读 · 0 评论 -
keras 建立MLP、RNN、LSTM模型进行IMDb情感分析
这是IMDB情感分析,我把三种模型三合一了,要仔细分清import tensorflow as tffrom tensorflow import kerasimport numpy as npimport pandas as pdfrom tensorflow.keras.utils import to_categoricalfrom tensorflow.keras.preprocessing import sequencefrom tensorflow.keras.models impor原创 2020-11-10 17:14:08 · 936 阅读 · 0 评论 -
keras多层感知器识别手写数字
一、进行数据预处理步骤1:导入所需模块import tensorflow as tfimport tensorflow.kerasimport numpy as npimport pandas as pdfrom tensorflow.keras.utils import to_categoricalnp.random.seed(10)步骤2:读取MNIST数据from tensorflow.keras.datasets import mnist(x_train_image, y_tr原创 2020-11-10 16:39:57 · 356 阅读 · 0 评论 -
Keras卷积神经网络识别手写数字
一、进行数据预处理步骤1:导入所需模块import tensorflow as tfimport tensorflow.kerasfrom tensorflow.keras.datasets import mnistimport numpy as npimport pandas as pdfrom tensorflow.keras.utils import to_categoricalnp.random.seed(10)步骤2:读取MNIST数据(x_train, y_train),原创 2020-11-10 15:39:57 · 355 阅读 · 0 评论