Skip to content

Commit 07115e8

Browse files
committed
set seed to get reproducible results when creating the README.md
1 parent 422e93a commit 07115e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.Rmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ Please open an issue so we can add your package.
102102
Some learners need to have their variable importance measure "activated" during learner creation.
103103
For example, to use the "impurity" measure of Random Forest via the {ranger} package:
104104

105-
```{r }
105+
```{r}
106+
set.seed(0)
106107
task = tsk("iris")
107108
lrn = lrn("classif.ranger")
108109
lrn$param_set$values = list(importance = "impurity")

0 commit comments

Comments
 (0)