-
Notifications
You must be signed in to change notification settings - Fork 10
/
summary.Rmd
46 lines (35 loc) · 2.46 KB
/
summary.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Summary
```{r, results = "asis", echo = FALSE}
status("drafting")
```
```{r, include=FALSE, message=FALSE, results='hide'}
ls <- c("rgdal", "raster", "plotKML", "ranger", "mlr", "forestError",
"xgboost", "glmnet", "matrixStats", "landmap", "yardstick", "Cubist",
"hexbin", "parallelMap", "Metrics", "fastSave", "devtools")
new.packages <- ls[!(ls %in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages)
lapply(ls, require, character.only = TRUE)
#load.pigz("eml_data.RData")
source("PSM_functions.R")
```
The tutorial above demonstrates how to use Ensemble Machine Learning for predictive
mapping going from numeric 2D, to factor and to 3D variables. Have in mind that
the examples shown are based on relatively small datasets, but can still become
computational if you add even more learners. In principle we do not recommend:
- adding learners that are significantly less accurate than your best learners
(i.e. focusing on the top 4–5 best performing learners),
- fitting EML for <50–100 training points,
- fitting EML for spatial interpolation where points are heavily spatially clustered,
- using landmap package with large datasets,
For derivation of prediction error and prediction interval we recommend using the
method of @lu2021unified. This method by default produces three measures of uncertainty:
- Root Mean Square Prediction Error (RMSPE) = the estimated conditional mean squared prediction errors of the random forest predictions,
- bias = the estimated conditional biases of the random forest predictions,
- lower and upper bounds / prediction intervals for a given probability e.g. 0.05 for the 95% probability interval,
You can also follow an introduction to Ensemble Machine Learning from the [Open Data Science Europe workshop video recordings](https://av.tib.eu/series/1146/opendatascience+europe+workshop+2021).
Please note that the mlr package is discontinued, so some of the example above might become unstable with time. We are working on migrating the code in the landmap package to make the `train.spLearner` function work with the new [mlr3 package](https://mlr3.mlr-org.com/).
If you have a dataset that you have used to test Ensemble Machine Learning, please come back to us and share your experiences by posting [an issue](https://github.com/Envirometrix/landmap/issues) and/or providing a screenshot of your results.
```{r, include=FALSE}
#save.image.pigz("eml_data.RData")
```
# References