摘要: 自定义损失函数 In statistics, the Huber loss is a loss function used in robust regression, that is less sensitive to outliers in data ... 阅读全文
posted @ 2020-04-21 18:01 2021年的顺遂平安君 阅读(107) 评论(0) 推荐(0)
摘要: 自定义损失函数 In statistics, the Huber loss is a loss function used in robust regression, that is less sensitive to outliers in data than the squared error 阅读全文
posted @ 2020-04-21 18:01 2021年的顺遂平安君 阅读(3374) 评论(0) 推荐(0)
摘要: 输出结果 注意:如果key相同,第二个dict的item会覆盖第一个dict的item。 阅读全文
posted @ 2020-04-21 17:15 2021年的顺遂平安君 阅读(241) 评论(0) 推荐(0)
摘要: x = {'a': 1, 'b': 2} y = {'b': 3, 'c': 4} z = {**x, **y} 输出结果 {'a': 1, 'b': 3, 'c': 4} 注意:如果key相同,第二个dict的item会覆盖第一个dict的item... 阅读全文
posted @ 2020-04-21 17:15 2021年的顺遂平安君 阅读(53) 评论(0) 推荐(0)
摘要: 官方说明: If both x and y are None, then this operation returns the coordinates of true elements of condition. The coordinates are r... 阅读全文
posted @ 2020-04-21 17:08 2021年的顺遂平安君 阅读(133) 评论(0) 推荐(0)
摘要: 官方说明: If both x and y are None, then this operation returns the coordinates of true elements of condition. The coordinates are returned in a 2 D tenso 阅读全文
posted @ 2020-04-21 17:08 2021年的顺遂平安君 阅读(4093) 评论(0) 推荐(0)
摘要: 如果t是二维数组, 等价于 ;如果是三维数值, 等价于 。 和`np.newaxis`功能相同,都是增加维度。 阅读全文
posted @ 2020-04-21 15:26 2021年的顺遂平安君 阅读(1294) 评论(0) 推荐(0)
摘要: 如果t是二维数组,t[...,1]等价于t[:,1];如果是三维数值,t[...,1]等价于t[:,:,1]。 tf.newaxis和np.newaxis功能相同,都是增加维度。 t=tf.constant([[1,2,3],[4,5,6]]) t[... 阅读全文
posted @ 2020-04-21 15:26 2021年的顺遂平安君 阅读(201) 评论(0) 推荐(0)