tensorflow - 在 keras 中实现自定义损失函数时 sample_weights 会发生什么?
问题描述
我想为我的(TimeDistributed)AutoEncoder 网络实现我自己的自定义损失函数。现在我想知道我的 samples_weights 将如何应用于这个损失函数?Sample_weight 是 model.fit 函数的参数。
- 在传递给 custom_loss_function 之前会
y_pred
乘以 sample_weight 矩阵吗? - 还是将返回
loss-tensor
乘以 sample_weight 矩阵?
提前致谢!
解决方案
推荐阅读
- excel - 根据仅一行中的条件将多行复制到新工作表
- c++ - 没有默认程序时如何使用Qt打开文件?
- sorting - 谷歌脚本 - 表格 - 排序 - 如何避免对第一行进行排序?
- sql - SAS SQL SELECT DISTINCT WITH GROUP BY
- c - 下面程序 556 的输出如何?
- android - 如何知道一个动作是全局完成的
- javascript - WebGL 画布背景
- apache-spark - 使用 spark.master.rest.enabled=true 的 spark 独立集群上的 Spark 身份验证和加密
- c# - 无法确定 1 到 0..1 关系中的类型之间关联的主体端
- javascript - 如何对这个 Wordpress PHP 函数进行代理调用,一次没有参数,另一次有参数?