摘要:
import numpy as np samples = ['The cat jump over the dog', 'The dog ate my homework'] #我们先将每个单词放置到一个哈希表中 token_index = {} for sample in samples: #将一个句 阅读全文
摘要:
from keras.preprocessing import image from keras.preprocessing.image import ImageDataGenerator import os import matplotlib.pyplot as plt datagen = Ima 阅读全文
摘要:
from keras import layers from keras import models model = models.Sequential() #首层接收2维输入 model.add(layers.Conv2D(32, (3,3), activation='relu', input_sh 阅读全文