![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
机器学习
Like_Frost
且共从容。
展开
-
Keras(六)——Preprocessing大纲
PreprocessingSequence PreprocessingTimeseriesGenerator——批量生成时序数据pad_sequences—— 将多个序列截断或补齐为相同长度skipgrams—— 生成 skipgram 词对make_sampling_table—— 生成一个基于单词的概率采样表Text PreprocessingTokenizer—— 文本标记实用...原创 2019-11-28 23:53:22 · 389 阅读 · 0 评论 -
Keras(五)——Layers大纲
LayersCommon Methodslayer.get_weights(): 以含有Numpy矩阵的列表形式返回层的权重。layer.set_weights(weights): 从含有Numpy矩阵的列表中设置层的权重(与get_weights的输出形状相同)。layer.get_config(): 返回包含层配置的字典。如果一个层具有单节点,得到各项参数:layer.inp...原创 2019-11-28 23:28:24 · 259 阅读 · 0 评论 -
Keras(二)——模型
Keras模型在 Keras 中有两类主要的模型:Sequential 顺序模型和使用函数式 API 的 Model 类模型传送门:Sequential 顺序模型Model类模型(函数式API)通用方法和属性model.layers 是包含模型网络层的展平列表model.inputs 是模型输入张量的列表model.outputs 是模型输出张量的列表mode...原创 2019-11-27 19:09:50 · 263 阅读 · 0 评论 -
Keras(四)——Model类模型(函数式API)
函数式APIKeras函数式API是定义复杂模型(如多输出模型、有向无环图,或具有共享层模型的方法)全连接网络网络层的实例是可调用的,它以张量为参数,并返回一个张量输入和输出均为张量,他们都可以用来定义一个模型(Model)这样的模型和 Keras 的模型相同,都可以被训练from keras.layers import Input, Densefrom keras.models...原创 2019-11-27 15:29:29 · 1073 阅读 · 0 评论 -
Keras(三)——Sequential 顺序模型
Sequential 顺序模型顺序模型是多个网络层的线性堆叠创建Sequential顺序模型1.将网络层实例的列表传递给 Sequential 的构造器from keras.models import Sequentialfrom keras.layers import Dense, Activationmodel = Sequential([ Dense(32, input...原创 2019-11-27 14:25:31 · 910 阅读 · 0 评论 -
Keras(一)——简单上手
KerasKeras是一个由Python编写的开源人工神经网络库,可以作为Tensorflow、Microsoft-CNTK和Theano的高阶应用程序接口,进行深度学习模型的设计、调试、评估、应用和可视化 。Keras的核心数据结构是model,最简单的模型是Sequential顺序模型。简单上手Sequential模型from keras.models import Sequen...原创 2019-11-27 13:24:42 · 235 阅读 · 0 评论