DL学习笔记
kedaya.
这个作者很懒,什么都没留下…
展开
-
ModuleNotFoundError: No module named ‘pytest‘
ModuleNotFoundError: No module named ‘pytest’将代码中出现 test的变量重命名,不要出现test开头的变量名原创 2022-03-11 16:23:21 · 2103 阅读 · 0 评论 -
tensorflow.keras.callbacks.Tensorbar
Tensorbar的使用TensorBoard是内置于TensorFlow中基于浏览器的可视化工具,安装TensorFlow时会自动安装这个工具。简单来说,它就是把训练过程数据写入文件,然后用浏览器查看的工具。在Keras中,它也被包装成一个回调函数。import tensorflow as tffrom tensorflow.keras.callbacks import Tensorbar# tensorbar读取路径log_dir = '读取路径'tensorbar = Tensorbar(原创 2021-11-19 10:58:10 · 952 阅读 · 0 评论 -
GlobalAveragePooling2D()
tf.keras.layers.GlobalAveragePooling2D()tf.keras.layers.GlobalAveragePooling2D( data_format=None, **kwargs)输入参数:data_format:输入是一个字符串。“channels_last”(默认) 或者"channels_first"。channels_last:代表通道数在最后,输入数据的形式是(batch, height, width, channels);channels原创 2021-05-26 19:43:58 · 5027 阅读 · 0 评论 -
tensorflow中的concatenate的使用
concatenate的使用tf.keras.layers.Concatenate(axis=-1, **kwargs)Layer that concatenates a list of inputs.在一层中将输入进行拼接It takes as input a list of tensors, all of the same shape except for the concatenation axis, and returns a single tensor that is the conc原创 2021-05-26 11:10:19 · 5728 阅读 · 0 评论 -
训练集、验证集和测试集
对这个概念处于模糊的状态,今天来做个总结!测试集,可以用来估计学习过程完成之后的泛化误差。它不能以任何形式参与到模型的选择中,包括设定超参数。我们将训练数据分成不相交的两个(或者3个部分)。训练集用于学习参数。验证集用于估计训练中或者训练后的泛化误差,更新超参数。K折交叉验证当数据集比较小时,用这个方法可降低误差。可参考链接:https://blog.csdn.net/kieven2008/article/details/81582591...原创 2021-05-25 16:05:47 · 116 阅读 · 0 评论