alex_bn_lee

导航

上一页 1 ··· 96 97 98 99 100 101 102 103 104 ··· 247 下一页

2021年8月6日 #

【634】ndarray 提取行列进行任意变换 & 相关 ndarray 操作

摘要: [1] Numpy系列之ndarray数组的维度变换,拼接,分割和复制 调整行,通过 [[]] 来实现 >>> arr1 array([[0, 1, 2], [3, 4, 5], [6, 7, 8]]) # 第 0 行 与 第 2 行 调换 >>> arr1[[2,1,0]] array([[6, 阅读全文

posted @ 2021-08-06 17:55 McDelfino 阅读(260) 评论(0) 推荐(0)

【633】图片多分类转 one-hot 编码

摘要: 图片多分类会将不同的数字写在同一副图片上面,例如有3类【0、1、2】,为了输入模型,需要将三个类的结果分别映射到三个通道: 0 类:第 0 通道,对于是 0 的像素点设置为 1,其他均为 0 1 类:第 1 通道,对于是 1 的像素点设置为 1,其他均为 0 2 类:第 2 通道,对于是 2 的像素 阅读全文

posted @ 2021-08-06 17:44 McDelfino 阅读(419) 评论(0) 推荐(0)

2021年8月5日 #

【632】keras 自定义损失函数

摘要: [1] Keras自定义Loss函数 [2] 【602】语义分割评价指标 IoU mIoU precision recall F1 的计算 [3] keras训练和加载自定义的损失函数 Dice_loss 实现: from keras import backend as K # 防止分母为0 smo 阅读全文

posted @ 2021-08-05 17:29 McDelfino 阅读(621) 评论(0) 推荐(0)

【631】TensorBoard 简介: TensorFlow 的可视化框架

摘要: import keras from keras import layers from keras.datasets import imdb from keras.preprocessing import sequence max_features = 2000 max_len = 500 (x_tr 阅读全文

posted @ 2021-08-05 16:52 McDelfino 阅读(56) 评论(0) 推荐(0)

【630】keras 实现多输出模型

摘要: 【511】Keras 函数式 API 阅读全文

posted @ 2021-08-05 15:58 McDelfino 阅读(81) 评论(0) 推荐(0)

上一页 1 ··· 96 97 98 99 100 101 102 103 104 ··· 247 下一页