This commit is contained in:
novak_99 2022-01-21 19:14:49 -08:00
parent 00004817d9
commit f9b86c2c25

View File

@ -80,7 +80,7 @@ namespace MLPP{
double y_hat = Evaluate(inputSet[outputIndex]);
double z = propagate(inputSet[outputIndex]);
cost_prev = Cost({z}, {outputSet[outputIndex]}, weights, C);
cost_prev = Cost(std::vector<double>({z}), std::vector<double>({outputSet[outputIndex]}), weights, C);
double costDeriv = cost.HingeLossDeriv({z}, {outputSet[outputIndex]}, C)[0];