diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2023-04-17 19:39:09 +0200 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2023-04-17 19:39:09 +0200 |
commit | 004fce2520d6889d82226e21bc443426e81d93f2 (patch) | |
tree | a5b18bd357c506059ff2149f1c6602ea71df6d99 /docs/dev/reference/multistart.html | |
parent | 57ca408fda3fb8e42e0d5f3d9fc808d54268fa08 (diff) |
Improve docs of multistart method
Diffstat (limited to 'docs/dev/reference/multistart.html')
-rw-r--r-- | docs/dev/reference/multistart.html | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/docs/dev/reference/multistart.html b/docs/dev/reference/multistart.html index 3cdede7b..36767560 100644 --- a/docs/dev/reference/multistart.html +++ b/docs/dev/reference/multistart.html @@ -222,15 +222,13 @@ doi: 10.1186/s12859-021-04373-4.</p> <span class="r-in"><span></span></span> <span class="r-in"><span><span class="va">f_saem_reduced</span> <span class="op"><-</span> <span class="fu"><a href="https://rdrr.io/r/stats/update.html" class="external-link">update</a></span><span class="op">(</span><span class="va">f_saem_full</span>, no_random_effect <span class="op">=</span> <span class="st">"log_k2"</span><span class="op">)</span></span></span> <span class="r-in"><span><span class="fu"><a href="illparms.html">illparms</a></span><span class="op">(</span><span class="va">f_saem_reduced</span><span class="op">)</span></span></span> -<span class="r-in"><span><span class="co"># On Windows, we need to create a cluster first. When working with</span></span></span> -<span class="r-in"><span><span class="co"># such a cluster, we need to export the mmkin object to the cluster</span></span></span> -<span class="r-in"><span><span class="co"># nodes, as it is referred to when updating the saem object on the nodes.</span></span></span> +<span class="r-in"><span><span class="co"># On Windows, we need to create a PSOCK cluster first and refer to it</span></span></span> +<span class="r-in"><span><span class="co"># in the call to multistart()</span></span></span> <span class="r-in"><span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">library</a></span><span class="op">(</span><span class="va">parallel</span><span class="op">)</span></span></span> <span class="r-in"><span><span class="va">cl</span> <span class="op"><-</span> <span class="fu"><a href="https://rdrr.io/r/parallel/makeCluster.html" class="external-link">makePSOCKcluster</a></span><span class="op">(</span><span class="fl">12</span><span class="op">)</span></span></span> <span class="r-in"><span><span class="va">f_saem_reduced_multi</span> <span class="op"><-</span> <span class="fu">multistart</span><span class="op">(</span><span class="va">f_saem_reduced</span>, n <span class="op">=</span> <span class="fl">16</span>, cluster <span class="op">=</span> <span class="va">cl</span><span class="op">)</span></span></span> -<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in checkForRemoteErrors(val):</span> 16 nodes produced errors; first error: unused argument (mc.preschedule = FALSE)</span> -<span class="r-in"><span><span class="fu"><a href="parplot.html">parplot</a></span><span class="op">(</span><span class="va">f_saem_reduced_multi</span>, lpos <span class="op">=</span> <span class="st">"topright"</span><span class="op">)</span></span></span> -<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in parplot(f_saem_reduced_multi, lpos = "topright"):</span> object 'f_saem_reduced_multi' not found</span> +<span class="r-in"><span><span class="fu"><a href="parplot.html">parplot</a></span><span class="op">(</span><span class="va">f_saem_reduced_multi</span>, lpos <span class="op">=</span> <span class="st">"topright"</span>, ylim <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">0.5</span>, <span class="fl">2</span><span class="op">)</span><span class="op">)</span></span></span> +<span class="r-plt img"><img src="multistart-2.png" alt="" width="700" height="433"></span> <span class="r-in"><span><span class="fu"><a href="https://rdrr.io/r/parallel/makeCluster.html" class="external-link">stopCluster</a></span><span class="op">(</span><span class="va">cl</span><span class="op">)</span></span></span> <span class="r-in"><span><span class="co"># }</span></span></span> </code></pre></div> |