mirror of
https://github.com/Relintai/MLPP.git
synced 2024-11-12 10:15:01 +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 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];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user