Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
radioman committed Nov 24, 2016
1 parent c0f3ed1 commit 71edc02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ConvNetSharp/Layers/DropOutLayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public override Volume Forward(Volume input, bool isTraining = false)
// scale the activations during prediction
for (var i = 0; i < length; i++)
{
output.Weights[i] *= this.DropProb.Value;
output.Weights[i] *= 1 - this.DropProb.Value;
}
}

Expand Down

0 comments on commit 71edc02

Please sign in to comment.