Skip to content

Commit 561c460

Browse files
committed
Deploy commit: Merge pull request #1132 from geocompx/refs-proofing
Refs proofing 0b4734a
1 parent c1b57bf commit 561c460

16 files changed

+175
-181
lines changed

01-introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Building on this early definition, *Geocomputation with R* goes beyond data anal
6262
Our approach differs from early definitions of geocomputation in one important way, however: in its emphasis on reproducibility\index{reproducibility} and collaboration.
6363
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.
6464
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.
6666
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.^[
6767
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).
6868
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
278278
The 1990s saw the development of numerous S scripts and a handful of packages for spatial statistics\index{statistics}.
279279
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].
280280
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.
282282
One of these (**spatstat**) is still being actively maintained, more than 20 years after its first release.
283283

284284
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].

08-read-write-plot.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ It is fast and flexible, but it may be worth looking at other packages such as *
386386
### Raster data {#raster-data-read}
387387

388388
\index{raster!data input}
389-
Similar to vector data, raster data comes in many file formats with some supporting multi-layerfiles.
389+
Similar to vector data, raster data comes in many file formats with some supporting multi-layer files.
390390
**terra**'s `rast()` command reads in a single layer when a file with just one layer is provided.
391391

392392

@@ -395,7 +395,7 @@ raster_filepath = system.file("raster/srtm.tif", package = "spDataLarge")
395395
single_layer = rast(raster_filepath)
396396
```
397397

398-
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.
399399

400400

401401
``` r
@@ -680,7 +680,7 @@ usa_sf = ne_countries(country = "United States of America", returnclass = "sf")
680680
Country borders can be also accessed with other packages, such as **geodata**, **giscoR**, or **rgeoboundaries**.
681681

682682
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`.
684684

685685

686686
``` r

10-gis.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ According to the creator of the popular QGIS software [@sherman_desktop_2008]:
3636

3737
> 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.
3838
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.
4040
GRASS GIS is a good example of GIS software that is primarily based on a CLI but which also has a prominent GUI.
4141
Likewise, while R is focused on its CLI, IDEs such as RStudio provide a GUI for improving accessibility.
4242
Software cannot be neatly categorized into CLI or GUI-based.

12-spatial-cv.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,11 +292,11 @@ There are dozens of packages for statistical learning\index{statistical learning
292292
Getting acquainted with each of these packages, including how to undertake cross-validation and hyperparameter\index{hyperparameter} tuning, can be a time-consuming process.
293293
Comparing model results from different packages can be even more laborious.
294294
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].
296296
The standardized **mlr3** interface is based on eight 'building blocks'.
297297
As illustrated in Figure \@ref(fig:building-blocks), these have a clear order.
298298

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.)
300300

301301
<div class="figure" style="text-align: center">
302302
<img src="images/12_ml_abstraction_crop.png" alt="(ref:building-blocks)" width="100%" />
@@ -669,7 +669,7 @@ round(mean(score_spcv_svm$classif.auc), 2)
669669

670670
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.
671671
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].
673673
We will explore these functions in more detail in the Exercises.
674674
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].
675675
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
692692
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.
693693
We recommend the following resources in this direction:
694694

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)
696696
- An academic paper on hyperparameter\index{hyperparameter} tuning [@schratz_hyperparameter_2019]
697697
- An academic paper on how to use **mlr3spatiotempcv** [@schratz_mlr3spatiotempcv_2021]
698698
- 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

Comments
 (0)