Skip to content

Commit f9b87d1

Browse files
committed
add missing imports for mean in docs example
1 parent 8b7b545 commit f9b87d1

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ y = Vector{Bool}(data[:, end] .== "Mine");
9595
Let's apply some basic pre-processing and add an intercept column:
9696

9797
```julia
98+
using Statistics
99+
98100
X = (X .- mean(X; dims=2)) ./ std(X; dims=2)
99101
X = hcat(X, ones(size(X, 1)));
100102
```

docs/src/tutorials/basic.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ nothing
8989
Let's apply some basic pre-processing and add an intercept column:
9090

9191
```@example basic
92+
using Statistics
93+
9294
X = (X .- mean(X; dims=2)) ./ std(X; dims=2)
9395
X = hcat(X, ones(size(X, 1)))
9496
nothing

docs/src/tutorials/subsampling.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ The features start from the seoncd column, while the last column are the class l
8787
Let's also apply some basic pre-processing.
8888

8989
```@example subsampling
90+
using Statistics
91+
9092
X = (X .- mean(X; dims=2)) ./ std(X; dims=2)
9193
X = hcat(X, ones(size(X, 1)))
9294
nothing

0 commit comments

Comments
 (0)