Skip to content

Commit 22a91fe

Browse files
author
Tomislav Hengl
committed
added missing ref
1 parent 1dfece4 commit 22a91fe

12 files changed

+28
-28
lines changed

_common.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ options(
2424
status <- function(type) {
2525
status <- switch(type,
2626
restructuring = "undergoing heavy restructuring and may be confusing or incomplete",
27-
drafting = "currently draft version, a peer-review publication is pending",
27+
drafting = "draft version, a peer-review publication is pending",
2828
stop("Invalid `type`", call. = FALSE)
2929
)
3030

docs/extending.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Generating 2nd, 3rd round sampling
22

33
::: {.rmdnote}
4-
You are reading the work-in-progress Spatial Sampling and Resampling for Machine Learning. This chapter is currently currently draft version, a peer-review publication is pending. You can find the polished first edition at <https://opengeohub.github.io/spatial-sampling-ml/>.
4+
You are reading the work-in-progress Spatial Sampling and Resampling for Machine Learning. This chapter is currently draft version, a peer-review publication is pending. You can find the polished first edition at <https://opengeohub.github.io/spatial-sampling-ml/>.
55
:::
66

77

docs/generating-2nd-3rd-round-sampling.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ <h1>
5656
<span class="header-section-number">4</span> Generating 2nd, 3rd round sampling<a class="anchor" aria-label="anchor" href="#generating-2nd-3rd-round-sampling"><i class="fas fa-link"></i></a>
5757
</h1>
5858
<div class="rmdnote">
59-
<p>You are reading the work-in-progress Spatial Sampling and Resampling for Machine Learning. This chapter is currently currently draft version, a peer-review publication is pending. You can find the polished first edition at <a href="https://opengeohub.github.io/spatial-sampling-ml/" class="uri">https://opengeohub.github.io/spatial-sampling-ml/</a>.</p>
59+
<p>You are reading the work-in-progress Spatial Sampling and Resampling for Machine Learning. This chapter is currently draft version, a peer-review publication is pending. You can find the polished first edition at <a href="https://opengeohub.github.io/spatial-sampling-ml/" class="uri">https://opengeohub.github.io/spatial-sampling-ml/</a>.</p>
6060
</div>
6161
<div id="uncertainty-guided-sampling" class="section level2" number="4.1">
6262
<h2>

docs/generating-spatial-sampling.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ <h1>
5656
<span class="header-section-number">1</span> Generating spatial sampling<a class="anchor" aria-label="anchor" href="#generating-spatial-sampling"><i class="fas fa-link"></i></a>
5757
</h1>
5858
<div class="rmdnote">
59-
<p>You are reading the work-in-progress Spatial Sampling and Resampling for Machine Learning. This chapter is currently currently draft version, a peer-review publication is pending. You can find the polished first edition at <a href="https://opengeohub.github.io/spatial-sampling-ml/" class="uri">https://opengeohub.github.io/spatial-sampling-ml/</a>.</p>
59+
<p>You are reading the work-in-progress Spatial Sampling and Resampling for Machine Learning. This chapter is currently draft version, a peer-review publication is pending. You can find the polished first edition at <a href="https://opengeohub.github.io/spatial-sampling-ml/" class="uri">https://opengeohub.github.io/spatial-sampling-ml/</a>.</p>
6060
</div>
6161
<div id="spatial-sampling" class="section level2" number="1.1">
6262
<h2>
@@ -497,14 +497,14 @@ <h2>
497497
<span id="cb19-4"><a href="generating-spatial-sampling.html#cb19-4" aria-hidden="true" tabindex="-1"></a><span class="co">#&gt; H2O is not running yet, starting it now...</span></span>
498498
<span id="cb19-5"><a href="generating-spatial-sampling.html#cb19-5" aria-hidden="true" tabindex="-1"></a><span class="co">#&gt; </span></span>
499499
<span id="cb19-6"><a href="generating-spatial-sampling.html#cb19-6" aria-hidden="true" tabindex="-1"></a><span class="co">#&gt; Note: In case of errors look at the following log files:</span></span>
500-
<span id="cb19-7"><a href="generating-spatial-sampling.html#cb19-7" aria-hidden="true" tabindex="-1"></a><span class="co">#&gt; /tmp/RtmpJi5Csw/file52ef4b12809c/h2o_tomislav_started_from_r.out</span></span>
501-
<span id="cb19-8"><a href="generating-spatial-sampling.html#cb19-8" aria-hidden="true" tabindex="-1"></a><span class="co">#&gt; /tmp/RtmpJi5Csw/file52ef3589a9d5/h2o_tomislav_started_from_r.err</span></span>
500+
<span id="cb19-7"><a href="generating-spatial-sampling.html#cb19-7" aria-hidden="true" tabindex="-1"></a><span class="co">#&gt; /tmp/RtmpMfyNVN/file525216bad313/h2o_tomislav_started_from_r.out</span></span>
501+
<span id="cb19-8"><a href="generating-spatial-sampling.html#cb19-8" aria-hidden="true" tabindex="-1"></a><span class="co">#&gt; /tmp/RtmpMfyNVN/file525218152b27/h2o_tomislav_started_from_r.err</span></span>
502502
<span id="cb19-9"><a href="generating-spatial-sampling.html#cb19-9" aria-hidden="true" tabindex="-1"></a><span class="co">#&gt; </span></span>
503503
<span id="cb19-10"><a href="generating-spatial-sampling.html#cb19-10" aria-hidden="true" tabindex="-1"></a><span class="co">#&gt; </span></span>
504504
<span id="cb19-11"><a href="generating-spatial-sampling.html#cb19-11" aria-hidden="true" tabindex="-1"></a><span class="co">#&gt; Starting H2O JVM and connecting: .. Connection successful!</span></span>
505505
<span id="cb19-12"><a href="generating-spatial-sampling.html#cb19-12" aria-hidden="true" tabindex="-1"></a><span class="co">#&gt; </span></span>
506506
<span id="cb19-13"><a href="generating-spatial-sampling.html#cb19-13" aria-hidden="true" tabindex="-1"></a><span class="co">#&gt; R is connected to the H2O cluster: </span></span>
507-
<span id="cb19-14"><a href="generating-spatial-sampling.html#cb19-14" aria-hidden="true" tabindex="-1"></a><span class="co">#&gt; H2O cluster uptime: 2 seconds 68 milliseconds </span></span>
507+
<span id="cb19-14"><a href="generating-spatial-sampling.html#cb19-14" aria-hidden="true" tabindex="-1"></a><span class="co">#&gt; H2O cluster uptime: 1 seconds 957 milliseconds </span></span>
508508
<span id="cb19-15"><a href="generating-spatial-sampling.html#cb19-15" aria-hidden="true" tabindex="-1"></a><span class="co">#&gt; H2O cluster timezone: Europe/Amsterdam </span></span>
509509
<span id="cb19-16"><a href="generating-spatial-sampling.html#cb19-16" aria-hidden="true" tabindex="-1"></a><span class="co">#&gt; H2O data parsing timezone: UTC </span></span>
510510
<span id="cb19-17"><a href="generating-spatial-sampling.html#cb19-17" aria-hidden="true" tabindex="-1"></a><span class="co">#&gt; H2O cluster version: 3.30.0.1 </span></span>
@@ -535,7 +535,7 @@ <h2>
535535
<span id="cb19-42"><a href="generating-spatial-sampling.html#cb19-42" aria-hidden="true" tabindex="-1"></a> <span class="sc">|</span> </span>
536536
<span id="cb19-43"><a href="generating-spatial-sampling.html#cb19-43" aria-hidden="true" tabindex="-1"></a> <span class="er">|</span> <span class="er">|</span> <span class="dv">0</span>%</span>
537537
<span id="cb19-44"><a href="generating-spatial-sampling.html#cb19-44" aria-hidden="true" tabindex="-1"></a> <span class="sc">|</span> </span>
538-
<span id="cb19-45"><a href="generating-spatial-sampling.html#cb19-45" aria-hidden="true" tabindex="-1"></a> <span class="er">|=================================================</span> <span class="er">|</span> <span class="dv">70</span>%</span>
538+
<span id="cb19-45"><a href="generating-spatial-sampling.html#cb19-45" aria-hidden="true" tabindex="-1"></a> <span class="er">|=======</span> <span class="er">|</span> <span class="dv">10</span>%</span>
539539
<span id="cb19-46"><a href="generating-spatial-sampling.html#cb19-46" aria-hidden="true" tabindex="-1"></a> <span class="sc">|</span> </span>
540540
<span id="cb19-47"><a href="generating-spatial-sampling.html#cb19-47" aria-hidden="true" tabindex="-1"></a> <span class="er">|======================================================================|</span> <span class="dv">100</span>%</span>
541541
<span id="cb19-48"><a href="generating-spatial-sampling.html#cb19-48" aria-hidden="true" tabindex="-1"></a><span class="co">#km.nut</span></span></code></pre></div>
@@ -554,10 +554,10 @@ <h2>
554554
<span class="fu"><a href="https://rdrr.io/pkg/raster/man/names.html">names</a></span><span class="op">(</span><span class="va">class_df.c</span><span class="op">)</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/pkg/raster/man/names.html">names</a></span><span class="op">(</span><span class="va">eberg_spc</span><span class="op">@</span><span class="va">predicted</span><span class="op">@</span><span class="va">data</span><span class="op">[</span>,<span class="fl">1</span><span class="op">:</span><span class="fl">4</span><span class="op">]</span><span class="op">)</span>
555555
<span class="fu"><a href="https://rdrr.io/r/utils/str.html">str</a></span><span class="op">(</span><span class="va">class_df.c</span><span class="op">)</span>
556556
<span class="co">#&gt; 'data.frame': 100 obs. of 4 variables:</span>
557-
<span class="co">#&gt; $ PC1: num 1.77 -1.88 -2.16 1.48 -6.14 ...</span>
558-
<span class="co">#&gt; $ PC2: num -0.0139 2.5271 -4.9895 2.2981 0.6775 ...</span>
559-
<span class="co">#&gt; $ PC3: num -1.332 5.526 -3.361 3.143 -0.605 ...</span>
560-
<span class="co">#&gt; $ PC4: num 0.0427 4.5728 -2.9965 -2.2581 1.5728 ...</span>
557+
<span class="co">#&gt; $ PC1: num -0.272 -1.22 -2.455 -3.951 1.636 ...</span>
558+
<span class="co">#&gt; $ PC2: num -3.25 -1.47 2.33 2.03 2.25 ...</span>
559+
<span class="co">#&gt; $ PC3: num 1.56 -3.6 5.25 -2.12 3.38 ...</span>
560+
<span class="co">#&gt; $ PC4: num 0.16 -1.49 4.58 1.22 -2.16 ...</span>
561561
<span class="co">#write.csv(class_df.c, "NCluster_100_class_centers.csv")</span></code></pre></div>
562562
<p>To select sampling points we use the minimum distance to class centers <span class="citation">(<a href="references.html#ref-Brus2021sampling" role="doc-biblioref">D. J. Brus, 2021</a>)</span>:</p>
563563
<div class="sourceCode" id="cb22"><pre class="downlit sourceCode r">

docs/resampling-for-spatiotemporal-machine-learning.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ <h1>
5656
<span class="header-section-number">3</span> Resampling for spatiotemporal Machine Learning<a class="anchor" aria-label="anchor" href="#resampling-for-spatiotemporal-machine-learning"><i class="fas fa-link"></i></a>
5757
</h1>
5858
<div class="rmdnote">
59-
<p>You are reading the work-in-progress Spatial Sampling and Resampling for Machine Learning. This chapter is currently currently draft version, a peer-review publication is pending. You can find the polished first edition at <a href="https://opengeohub.github.io/spatial-sampling-ml/" class="uri">https://opengeohub.github.io/spatial-sampling-ml/</a>.</p>
59+
<p>You are reading the work-in-progress Spatial Sampling and Resampling for Machine Learning. This chapter is currently draft version, a peer-review publication is pending. You can find the polished first edition at <a href="https://opengeohub.github.io/spatial-sampling-ml/" class="uri">https://opengeohub.github.io/spatial-sampling-ml/</a>.</p>
6060
</div>
6161
<div id="case-study-cookfarm-dataset" class="section level2" number="3.1">
6262
<h2>

docs/resampling-methods-for-machine-learning.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ <h1>
5656
<span class="header-section-number">2</span> Resampling methods for Machine Learning<a class="anchor" aria-label="anchor" href="#resampling-methods-for-machine-learning"><i class="fas fa-link"></i></a>
5757
</h1>
5858
<div class="rmdnote">
59-
<p>You are reading the work-in-progress Spatial Sampling and Resampling for Machine Learning. This chapter is currently currently draft version, a peer-review publication is pending. You can find the polished first edition at <a href="https://opengeohub.github.io/spatial-sampling-ml/" class="uri">https://opengeohub.github.io/spatial-sampling-ml/</a>.</p>
59+
<p>You are reading the work-in-progress Spatial Sampling and Resampling for Machine Learning. This chapter is currently draft version, a peer-review publication is pending. You can find the polished first edition at <a href="https://opengeohub.github.io/spatial-sampling-ml/" class="uri">https://opengeohub.github.io/spatial-sampling-ml/</a>.</p>
6060
</div>
6161
<div id="resampling-and-cross-validation" class="section level2" number="2.1">
6262
<h2>

docs/resampling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Resampling methods for Machine Learning
22

33
::: {.rmdnote}
4-
You are reading the work-in-progress Spatial Sampling and Resampling for Machine Learning. This chapter is currently currently draft version, a peer-review publication is pending. You can find the polished first edition at <https://opengeohub.github.io/spatial-sampling-ml/>.
4+
You are reading the work-in-progress Spatial Sampling and Resampling for Machine Learning. This chapter is currently draft version, a peer-review publication is pending. You can find the polished first edition at <https://opengeohub.github.io/spatial-sampling-ml/>.
55
:::
66

77

docs/resampling_st.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Resampling for spatiotemporal Machine Learning
22

33
::: {.rmdnote}
4-
You are reading the work-in-progress Spatial Sampling and Resampling for Machine Learning. This chapter is currently currently draft version, a peer-review publication is pending. You can find the polished first edition at <https://opengeohub.github.io/spatial-sampling-ml/>.
4+
You are reading the work-in-progress Spatial Sampling and Resampling for Machine Learning. This chapter is currently draft version, a peer-review publication is pending. You can find the polished first edition at <https://opengeohub.github.io/spatial-sampling-ml/>.
55
:::
66

77

docs/sampling.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Generating spatial sampling
22

33
::: {.rmdnote}
4-
You are reading the work-in-progress Spatial Sampling and Resampling for Machine Learning. This chapter is currently currently draft version, a peer-review publication is pending. You can find the polished first edition at <https://opengeohub.github.io/spatial-sampling-ml/>.
4+
You are reading the work-in-progress Spatial Sampling and Resampling for Machine Learning. This chapter is currently draft version, a peer-review publication is pending. You can find the polished first edition at <https://opengeohub.github.io/spatial-sampling-ml/>.
55
:::
66

77

@@ -494,14 +494,14 @@ h2o.init(nthreads = -1)
494494
#> H2O is not running yet, starting it now...
495495
#>
496496
#> Note: In case of errors look at the following log files:
497-
#> /tmp/RtmpJi5Csw/file52ef4b12809c/h2o_tomislav_started_from_r.out
498-
#> /tmp/RtmpJi5Csw/file52ef3589a9d5/h2o_tomislav_started_from_r.err
497+
#> /tmp/RtmpMfyNVN/file525216bad313/h2o_tomislav_started_from_r.out
498+
#> /tmp/RtmpMfyNVN/file525218152b27/h2o_tomislav_started_from_r.err
499499
#>
500500
#>
501501
#> Starting H2O JVM and connecting: .. Connection successful!
502502
#>
503503
#> R is connected to the H2O cluster:
504-
#> H2O cluster uptime: 2 seconds 68 milliseconds
504+
#> H2O cluster uptime: 1 seconds 957 milliseconds
505505
#> H2O cluster timezone: Europe/Amsterdam
506506
#> H2O data parsing timezone: UTC
507507
#> H2O cluster version: 3.30.0.1
@@ -524,7 +524,7 @@ h2o.init(nthreads = -1)
524524
df.hex <- as.h2o(eberg_spc@predicted@data[,1:4], destination_frame = "df")
525525
#> | | | 0% | |======================================================================| 100%
526526
km.nut <- h2o.kmeans(training_frame=df.hex, k=100, keep_cross_validation_predictions = TRUE)
527-
#> | | | 0% | |================================================= | 70% | |======================================================================| 100%
527+
#> | | | 0% | |======= | 10% | |======================================================================| 100%
528528
#km.nut
529529
```
530530

@@ -546,10 +546,10 @@ class_df.c = as.data.frame(h2o.centers(km.nut))
546546
names(class_df.c) = names(eberg_spc@predicted@data[,1:4])
547547
str(class_df.c)
548548
#> 'data.frame': 100 obs. of 4 variables:
549-
#> $ PC1: num 1.77 -1.88 -2.16 1.48 -6.14 ...
550-
#> $ PC2: num -0.0139 2.5271 -4.9895 2.2981 0.6775 ...
551-
#> $ PC3: num -1.332 5.526 -3.361 3.143 -0.605 ...
552-
#> $ PC4: num 0.0427 4.5728 -2.9965 -2.2581 1.5728 ...
549+
#> $ PC1: num -0.272 -1.22 -2.455 -3.951 1.636 ...
550+
#> $ PC2: num -3.25 -1.47 2.33 2.03 2.25 ...
551+
#> $ PC3: num 1.56 -3.6 5.25 -2.12 3.38 ...
552+
#> $ PC4: num 0.16 -1.49 4.58 1.22 -2.16 ...
553553
#write.csv(class_df.c, "NCluster_100_class_centers.csv")
554554
```
555555

docs/search.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/summary-notes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ <h1>
5656
<span class="header-section-number">5</span> Summary notes<a class="anchor" aria-label="anchor" href="#summary-notes"><i class="fas fa-link"></i></a>
5757
</h1>
5858
<div class="rmdnote">
59-
<p>You are reading the work-in-progress Spatial Sampling and Resampling for Machine Learning. This chapter is currently currently draft version, a peer-review publication is pending. You can find the polished first edition at <a href="https://opengeohub.github.io/spatial-sampling-ml/" class="uri">https://opengeohub.github.io/spatial-sampling-ml/</a>.</p>
59+
<p>You are reading the work-in-progress Spatial Sampling and Resampling for Machine Learning. This chapter is currently draft version, a peer-review publication is pending. You can find the polished first edition at <a href="https://opengeohub.github.io/spatial-sampling-ml/" class="uri">https://opengeohub.github.io/spatial-sampling-ml/</a>.</p>
6060
</div>
6161
<div id="which-sampling-algorithm-to-choose" class="section level2" number="5.1">
6262
<h2>

docs/summary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Summary notes
22

33
::: {.rmdnote}
4-
You are reading the work-in-progress Spatial Sampling and Resampling for Machine Learning. This chapter is currently currently draft version, a peer-review publication is pending. You can find the polished first edition at <https://opengeohub.github.io/spatial-sampling-ml/>.
4+
You are reading the work-in-progress Spatial Sampling and Resampling for Machine Learning. This chapter is currently draft version, a peer-review publication is pending. You can find the polished first edition at <https://opengeohub.github.io/spatial-sampling-ml/>.
55
:::
66

77
## Which sampling algorithm to choose?

0 commit comments

Comments
 (0)