diff --git a/docs/src/randomforest.md b/docs/src/randomforest.md index 6529b26cb..7992c2654 100644 --- a/docs/src/randomforest.md +++ b/docs/src/randomforest.md @@ -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 @@ -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") -``` \ No newline at end of file +```