首页 > 解决方案 > 什么样的损失?

问题描述

我检查了这个文件( 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

我想知道这种损失函数是什么样的,或者它只是一种发明的损失?谢谢!

标签: autoencoderloss-function

解决方案


推荐阅读