Skip to content

Commit

Permalink
Update examples.md for 1-based indexing
Browse files Browse the repository at this point in the history
Since we are in Julia not in Python, the indices of `x3` and `x0` should really be `x4` and `x1` to be consistent with the code to avoid any confusion.
  • Loading branch information
liuyxpp committed Apr 10, 2024
1 parent bdaf2db commit 7a079a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ using MLJ
## 1. Simple search

Here's a simple example where we
find the expression `2 cos(x3) + x0^2 - 2`.
find the expression `2 cos(x4) + x1^2 - 2`.

```julia
X = 2randn(1000, 5)
Expand Down

0 comments on commit 7a079a6

Please sign in to comment.