You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 01-introduction.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ Building on this early definition, *Geocomputation with R* goes beyond data anal
62
62
Our approach differs from early definitions of geocomputation in one important way, however: in its emphasis on reproducibility\index{reproducibility} and collaboration.
63
63
At the turn of the 21^st^ Century, it was unrealistic to expect readers to be able to reproduce code examples, due to barriers preventing access to the necessary hardware, software and data.
64
64
Fast-forward to today and things have progressed rapidly.
65
-
Anyone with access to a laptop with sufficient RAM (at least 8 GB recommended) can install and run software for geocomputation, and reproduce the contents of this book.
65
+
Anyone with access to a laptop with sufficient RAM (at least eight GB recommended) can install and run software for geocomputation, and reproduce the contents of this book.
66
66
Financial and hardware barriers to geocomputation that existed in 1990s and early 2000s, when high-performance computers were too expensive for most people, have been removed.^[
67
67
A suitable laptop can be acquired second-hand for $100 or less in most countries today from websites such as [Ebay](https://www.ebay.com/sch/i.html?_from=R40&_nkw=laptop&_sacat=0&_oaa=1&_udhi=100&rt=nc&RAM%2520Size=4%2520GB%7C16%2520GB%7C8%2520GB&_dcat=177).
68
68
Guidance on installing R and a suitable code editor is provided in Chapter \@ref(spatial-class).
@@ -278,7 +278,7 @@ R's spatial capabilities originated in early spatial packages in the S language
278
278
The 1990s saw the development of numerous S scripts and a handful of packages for spatial statistics\index{statistics}.
279
279
By the year 2000, there were R packages for various spatial methods, including "point pattern analysis, geostatistics, exploratory spatial data analysis and spatial econometrics" [@bivand_open_2000].
280
280
Some of these, notably **spatial**, **sgeostat** and **splancs** are still available on CRAN\index{CRAN} [@rowlingson_splancs_1993; @rowlingson_splancs_2017;@venables_modern_2002; @majure_sgeostat_2016].
281
-
Key spatial packages were described in @ripley_spatial_2001, which outlined R packages for spatial smoothing and interpolation [@akima_akima_2016; @jr_geor_2016]and point pattern analysis[@rowlingson_splancs_2017; @baddeley_spatial_2015].
281
+
Key spatial packages were described in @ripley_spatial_2001, which outlined R packages for spatial smoothing and interpolation and point pattern analysis.
282
282
One of these (**spatstat**) is still being actively maintained, more than 20 years after its first release.
283
283
284
284
A following commentary outlined the future prospects of spatial statistics [@bivand_more_2001], setting the stage for the development of the popular **spdep** package [@bivand_spdep_2017].
It also works in case you want to read a multi-layerfile.
398
+
It also works in case you want to read a multi-layer file.
399
399
400
400
401
401
```r
@@ -680,7 +680,7 @@ usa_sf = ne_countries(country = "United States of America", returnclass = "sf")
680
680
Country borders can be also accessed with other packages, such as **geodata**, **giscoR**, or **rgeoboundaries**.
681
681
682
682
A second example downloads a series of rasters containing global monthly precipitation sums with spatial resolution of 10 minutes (~18.5 km at the equator) using the **geodata** package [@R-geodata].
683
-
The result is a multi-layerobject of class `SpatRaster`.
683
+
The result is a multi-layer object of class `SpatRaster`.
Copy file name to clipboardExpand all lines: 10-gis.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ According to the creator of the popular QGIS software [@sherman_desktop_2008]:
36
36
37
37
> With the advent of 'modern' GIS software, most people want to point and click their way through life. That’s good, but there is a tremendous amount of flexibility and power waiting for you with the command line. Many times you can do something on the command line in a fraction of the time you can do it with a GUI.
38
38
39
-
The 'CLI vs GUI' debate does not have to be adversarial: both ways of working have advantages, depending on a range of factors including the task (with drawing new features being well suited to GUIs), the level of reproducibility desired, and the user's skillset.
39
+
The 'CLI vs. GUI' debate does not have to be adversarial: both ways of working have advantages, depending on a range of factors including the task (with drawing new features being well suited to GUIs), the level of reproducibility desired, and the user's skillset.
40
40
GRASS GIS is a good example of GIS software that is primarily based on a CLI but which also has a prominent GUI.
41
41
Likewise, while R is focused on its CLI, IDEs such as RStudio provide a GUI for improving accessibility.
42
42
Software cannot be neatly categorized into CLI or GUI-based.
Copy file name to clipboardExpand all lines: 12-spatial-cv.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -292,11 +292,11 @@ There are dozens of packages for statistical learning\index{statistical learning
292
292
Getting acquainted with each of these packages, including how to undertake cross-validation and hyperparameter\index{hyperparameter} tuning, can be a time-consuming process.
293
293
Comparing model results from different packages can be even more laborious.
294
294
The **mlr3** package and ecosystem was developed to address these issues.
295
-
It acts as a 'meta-package', providing a unified interface to popular supervised and unsupervised statistical learning techniques including classification, regression\index{regression}, survival analysis and clustering\index{clustering} [@lang_mlr3_2019; @becker_mlr3_2022].
295
+
It acts as a 'meta-package', providing a unified interface to popular supervised and unsupervised statistical learning techniques including classification, regression\index{regression}, survival analysis and clustering\index{clustering} [@lang_mlr3_2019; @bischl_applied_2024].
296
296
The standardized **mlr3** interface is based on eight 'building blocks'.
297
297
As illustrated in Figure \@ref(fig:building-blocks), these have a clear order.
298
298
299
-
(ref:building-blocks) Basic building blocks of the mlr3 package. Source: @becker_mlr3_2022. (Permission to reuse this figure was kindly granted.)
299
+
(ref:building-blocks) Basic building blocks of the mlr3 package. Source: @bischl_applied_2024. (Permission to reuse this figure was kindly granted.)
It appears that the GLM\index{GLM} (aggregated AUROC\index{AUROC} was 0.77) is slightly better than the SVM\index{SVM} in this specific case.
671
671
To guarantee an absolute fair comparison, one should also make sure that the two models use the exact same partitions -- something we have not shown here but have silently used in the background (see `code/12_cv.R` in the book's GitHub repository for more information).
672
-
To do so, **mlr3** offers the functions `benchmark_grid()` and `benchmark()`[see also https://mlr3book.mlr-org.com/chapters/chapter3/evaluation_and_benchmarking.html#sec-benchmarking, @becker_mlr3_2022].
672
+
To do so, **mlr3** offers the functions `benchmark_grid()` and `benchmark()`[see also https://mlr3book.mlr-org.com/chapters/chapter3/evaluation_and_benchmarking.html#sec-benchmarking, @bischl_applied_2024].
673
673
We will explore these functions in more detail in the Exercises.
674
674
Please note also that using more than 50 iterations in the random search of the SVM would probably yield hyperparameters\index{hyperparameter} that result in models with a better AUROC [@schratz_hyperparameter_2019].
675
675
On the other hand, increasing the number of random search iterations would also increase the total number of models and thus runtime.
@@ -692,7 +692,7 @@ Machine learning algorithms often require hyperparameter\index{hyperparameter} i
692
692
Machine learning overall, and its use to understand spatial data, is a large field and this chapter has provided the basics, but there is more to learn.
693
693
We recommend the following resources in this direction:
694
694
695
-
- The **mlr3 book** (@becker_mlr3_2022; https://mlr3book.mlr-org.com/) and especially the [chapter on the handling of spatiotemporal data](https://mlr3book.mlr-org.com/chapters/chapter13/beyond_regression_and_classification.html#sec-spatiotemporal)
695
+
- The **mlr3 book** (@bischl_applied_2024; https://mlr3book.mlr-org.com/) and especially the [chapter on the handling of spatiotemporal data](https://mlr3book.mlr-org.com/chapters/chapter13/beyond_regression_and_classification.html#sec-spatiotemporal)
696
696
- An academic paper on hyperparameter\index{hyperparameter} tuning [@schratz_hyperparameter_2019]
697
697
- An academic paper on how to use **mlr3spatiotempcv**[@schratz_mlr3spatiotempcv_2021]
698
698
- In case of spatiotemporal data, one should account for spatial\index{autocorrelation!spatial} and temporal\index{autocorrelation!temporal} autocorrelation when doing CV\index{cross-validation} [@meyer_improving_2018]
0 commit comments