From 32badc7aee6452976257f70e7aa7bbcf867c899b Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 27 Dec 2023 21:25:48 +0100 Subject: [PATCH] Fixed MLPPAutoEncoder::cost(). --- mlpp/auto_encoder/auto_encoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlpp/auto_encoder/auto_encoder.cpp b/mlpp/auto_encoder/auto_encoder.cpp index d70f55b..d14dd21 100644 --- a/mlpp/auto_encoder/auto_encoder.cpp +++ b/mlpp/auto_encoder/auto_encoder.cpp @@ -291,7 +291,7 @@ MLPPAutoEncoder::~MLPPAutoEncoder() { real_t MLPPAutoEncoder::cost(const Ref &y_hat, const Ref &y) { MLPPCost mlpp_cost; - return mlpp_cost.msem(y_hat, _input_set); + return mlpp_cost.msem(y_hat, y); } Ref MLPPAutoEncoder::evaluatev(const Ref &x) {