diff --git a/MLPP/SVC/SVC.cpp b/MLPP/SVC/SVC.cpp index 034ec30..c05d405 100644 --- a/MLPP/SVC/SVC.cpp +++ b/MLPP/SVC/SVC.cpp @@ -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({z}), std::vector({outputSet[outputIndex]}), weights, C); double costDeriv = cost.HingeLossDeriv({z}, {outputSet[outputIndex]}, C)[0];