
Python
xiaoshen0121
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
重新更新Python 后的pip问题
python 升级后导致不能使用原来的pip命令windows平台anaconda环境中cmd中敲命令:python -m ensurepip得到pip的setuptools然后就可以用:easy_install pip下载相应版本的pip,最后就可以愉快的用pip命令了!...原创 2018-06-11 14:34:46 · 1434 阅读 · 0 评论 -
keras 多输入多输出
from keras.layers import Conv2D, MaxPooling2D, Input, Dense, Flatten, Concatenate from keras.models import Model # First, define the vision modules digit_input = Input(shape=(27, 27, 1)) x = Conv2D(...原创 2019-02-21 14:57:17 · 1594 阅读 · 0 评论 -
Graph disconnected: cannot obtain value for tensor Tensor
在keras中,如果要将一个模型的输出与另一个模型的输出连接起来,第二个模型的接收的输入而不是直接传递的该张量: def Generator(image_shape=(512,512,3): inputs = Input(image_shape) # 5 convolution Layers # 5 Deconvolution Layers along with concatena...翻译 2019-03-05 10:04:49 · 12531 阅读 · 2 评论 -
笔记:tensorflow2.0中实现keras超参数搜索
本文是tensorflow2.0版本下对tf.keras实现超参数搜索的代码笔记,使用sklearn对keras.model进行封装。代码实现是在jupyter notebook上,首先导入一些需要的库: import matplotlib as mpl import matplotlib.pyplot as plt %matplotlib inline import numpy as np...原创 2019-07-11 14:32:43 · 2028 阅读 · 6 评论