Skip to content

Commit

Permalink
fix L2 error
Browse files Browse the repository at this point in the history
  • Loading branch information
daelsepara committed Feb 14, 2019
1 parent 74c74bf commit f1d4a0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DeepLearnUI/ManagedNN.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void BackPropagation(ManagedArray training)

for (var i = 0; i < Y_output.Length(); i++)
{
L2 += Math.Sqrt(D3[i] * D3[i]);
L2 += (D3[i] * D3[i]);
Cost += (-Y_output[i] * Math.Log(Yk[i]) - (1 - Y_output[i]) * Math.Log(1 - Yk[i]));
}

Expand Down

0 comments on commit f1d4a0c

Please sign in to comment.