mirror of
https://github.com/Relintai/MLPP.git
synced 2024-11-14 10:17:18 +01:00
so
This commit is contained in:
parent
00004817d9
commit
f9b86c2c25
@ -80,7 +80,7 @@ namespace MLPP{
|
|||||||
|
|
||||||
double y_hat = Evaluate(inputSet[outputIndex]);
|
double y_hat = Evaluate(inputSet[outputIndex]);
|
||||||
double z = propagate(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];
|
double costDeriv = cost.HingeLossDeriv({z}, {outputSet[outputIndex]}, C)[0];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user