Skip to content

Commit

Permalink
Update randomforest.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ludoro committed Jun 22, 2020
1 parent f1ed74b commit 985beee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/randomforest.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Random forests is a supervised learning algorithm that randomly creates and merg

We are going to use a Random forests surrogate to optimize $f(x)=3*x+1$.

First of all import `Surrogates`, `XGBoost` and `Plots`.
First of all import `Surrogates` and `Plots`.
```@example RandomForestSurrogate_tutorial
using Surrogates, XGBoost
using Surrogates
using Plots
```
### Sampling
Expand Down Expand Up @@ -47,4 +47,4 @@ To optimize using our surrogate we call `surrogate_optimize` method. We choose t
scatter(x, y, label="Sampled points")
plot!(f, label="True function")
plot!(randomforest_surrogate, label="Surrogate function")
```
```

0 comments on commit 985beee

Please sign in to comment.