autoencoder - 什么样的损失?
问题描述
我检查了这个文件( https://github.com/saman-nia/Deep-Neural-Networks-for-Clustering/blob/master/Iris%20dataset/Autoencoder%20on%20iris%20dataset.ipynb),发现损失功能:
def loss(reconstructed, x):
with tf.variable_scope("train"):
train_loss = tf.reduce_mean(tf.reduce_sum(tf.square(tf.subtract(reconstructed, x)), 1))
return train_loss
我想知道这种损失函数是什么样的,或者它只是一种发明的损失?谢谢!
解决方案
推荐阅读
- html - AngularJS HTML 编辑器留下所有标签
- javascript - 在 vue 中构建音频播放器;如何在更改绑定后开始播放音频:src?
- react-native - setTimeout 将我的应用程序冻结在本机反应中
- ms-office - 提交带有自定义功能的加载项(更新?)
- apache-spark - Kafka 生产者 - 发送消息列表
- python-3.x - 如何向用户发送不同的消息
- typescript - 量角器使用setter填充几个元素
- postgresql - Postgresql 返回值减少余额
- android - Android Retrofit 获取空值
- c++ - sqlConnection->Open() 不起作用