Skip to content

Commit

Permalink
Merge pull request accord-net#475 from josiahwood/patch-2
Browse files Browse the repository at this point in the history
Update StochasticLayer.cs
  • Loading branch information
fdncred committed May 3, 2019
2 parents 511701f + f4c413a commit 5f65e9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Accord.Neuro/Layers/StochasticLayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ public double[] Generate(double[] input)

for (int i = 0; i < neurons.Length; i++)
{
sample[i] = neurons[i].Generate(input);
output[i] = neurons[i].Output;
output[i] = neurons[i].Compute(input);
sample[i] = neurons[i].Generate(output[i]);
}

this.sample = sample;
Expand Down

0 comments on commit 5f65e9f

Please sign in to comment.