diff --git a/docs/src/tutorials/linear_regression.md b/docs/src/tutorials/linear_regression.md index f32ec30e78..a8155b1fa2 100644 --- a/docs/src/tutorials/linear_regression.md +++ b/docs/src/tutorials/linear_regression.md @@ -273,7 +273,7 @@ julia> dataset = BostonHousing(); julia> x, y = BostonHousing(as_df=false)[:]; -julia> x, y = Float32.(x), Float32.(y) +julia> x, y = Float32.(x), Float32.(y); ``` We can now split the obtained data into training and testing data - diff --git a/src/layers/normalise.jl b/src/layers/normalise.jl index 9cabea921f..ef2dacab85 100644 --- a/src/layers/normalise.jl +++ b/src/layers/normalise.jl @@ -81,7 +81,7 @@ julia> m = Chain(Dense(1000 => 1000), Dropout(0.5)); julia> Flux.trainmode!(m); -julia> y = m(ones(1000)); +julia> y = m(ones32(1000)); julia> isapprox(count(==(0), y) / length(y), 0.5, atol=0.1) true