Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postmerge fixing Ecology chapter #776

Merged
merged 6 commits into from Apr 19, 2022
Merged

Postmerge fixing Ecology chapter #776

merged 6 commits into from Apr 19, 2022

Conversation

jannes-m
Copy link
Collaborator

No description provided.

@@ -31,7 +31,7 @@ To do so, we will bring together concepts presented in previous chapters and eve
Fog oases are one of the most fascinating vegetation formations we have ever encountered.
These formations, locally termed *lomas*, develop on mountains along the coastal deserts of Peru and Chile.^[Similar vegetation formations develop also in other parts of the world, e.g., in Namibia and along the coasts of Yemen and Oman [@galletti_land_2016].]
The deserts' extreme conditions and remoteness provide the habitat for a unique ecosystem, including species endemic to the fog oases.
Despite the arid conditions and low levels of precipitation of around 30-50 mm per year on average, fog deposition increases the amount of water available to plants during austal winter.
Despite the arid conditions and low levels of precipitation of around 30-50 mm per year on average, fog deposition increases the amount of water available to plants during austral winter.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 for typo fixes

15-eco.Rmd Outdated
@@ -519,7 +519,7 @@ search_space = paradox::ps(
Having defined the search space, we are all set for specifying our tuning via the `AutoTuner()` function.
Since we deal with geographic data, we will again make use of spatial cross-validation to tune the hyperparameters\index{hyperparameter} (see Sections \@ref(intro-cv) and \@ref(spatial-cv-with-mlr)).
Specifically, we will use a five-fold spatial partitioning with only one repetition (`rsmp()`).
In each of these spatial partitions, we run 50 models (`trm()`) while using randomly selected hyperparameter configurations (`tnr`) within predefined limits (`seach_space`) to find the optimal hyperparameter\index{hyperparameter} combination.
In each of these spatial partitions, we run 50 models (`trm()`) while using randomly selected hyperparameter configurations (`tnr()`) within predefined limits (`seach_space`) to find the optimal hyperparameter\index{hyperparameter} combination.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definite improvement, follow-on question, worth explaining in more detail what these functions are, I'm new to them and am not sure from this good but terse description.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, will reference the spatial-cv chapter as I have explained there in a little more detail how to construct an AutoTuner().

15-eco.Rmd Outdated
@@ -562,12 +562,12 @@ saveRDS(at, "extdata/15-tune.rds")
```

```{r 15-eco-26, echo=FALSE, eval=FALSE}
tune = readRDS("extdata/15-tune.rds")
at = readRDS("extdata/15-tune.rds")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does at stand for? Autotune? may be worth stating that somewhere or using a longer and more descriptive object name.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, at stands for AutoTuner and I guess this was more obvious while creating the object: https://github.com/Robinlovelace/geocompr/blob/672991f23a7115b77c8ee199bdf8353b84f289f0/15-eco.Rmd#L526-L538
Still, the name could be more descriptive, something like autotuner_rf where rf stands for random forest.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still, the name could be more descriptive, something like autotuner_rf where rf stands for random forest.

Agreed, I see now the tests are unrelated to your changes Jannes, so I suggest merging this now to keep the momentum. Many thanks!

@Robinlovelace
Copy link
Collaborator

Approved as some definite changes in there. Feel free to merge @jannes-m to keep the momentum going I think 'go fast and break things' is a reasonable attitude. The build seems to be failing with this message:

Error: [rast] cannot open file: /vsicurl/https://zenodo.org/record/5774954/files/clm_snow.prob_esacci.dec_p.90_500m_s0..0cm_2000..2012_v2.0.tif

Source: https://github.com/Robinlovelace/geocompr/runs/6077814566?check_suite_focus=true#step:4:5548

@jannes-m
Copy link
Collaborator Author

give me a few minutes, then I will merge

@jannes-m
Copy link
Collaborator Author

And yes, the momentum is only there because the baby is overdue -:)

@jannes-m jannes-m merged commit 1e5be92 into main Apr 19, 2022
@jannes-m jannes-m deleted the eco_fixes branch April 19, 2022 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants