Skip to content

Commit

Permalink
Merge pull request #587 from KristofferC/patch-2
Browse files Browse the repository at this point in the history
use uncorrected standard deviation in normalise
  • Loading branch information
MikeInnes authored Feb 4, 2019
2 parents 7fc9202 + fd0f1c7 commit 940b1e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layers/stateless.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ Normalise each column of `x` to mean 0 and standard deviation 1.
"""
function normalise(x::AbstractVecOrMat)
μ′ = mean(x, dims = 1)
σ′ = std(x, dims = 1, mean = μ′)
σ′ = std(x, dims = 1, mean = μ′, corrected=false)
return (x .- μ′) ./ σ′
end

0 comments on commit 940b1e6

Please sign in to comment.