Fixed MLPPAutoEncoder::cost().

This commit is contained in:
Relintai 2023-12-27 21:25:48 +01:00
parent 5e13b3abf1
commit 32badc7aee

View File

@ -291,7 +291,7 @@ MLPPAutoEncoder::~MLPPAutoEncoder() {
real_t MLPPAutoEncoder::cost(const Ref<MLPPMatrix> &y_hat, const Ref<MLPPMatrix> &y) {
MLPPCost mlpp_cost;
return mlpp_cost.msem(y_hat, _input_set);
return mlpp_cost.msem(y_hat, y);
}
Ref<MLPPVector> MLPPAutoEncoder::evaluatev(const Ref<MLPPVector> &x) {