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

Maxent pipeline: some docs, bug fix, defaults and simplified create background function #110

Merged
merged 12 commits into from
Nov 14, 2023

Conversation

frousseu
Copy link
Contributor

@frousseu frousseu commented Oct 4, 2023

Described a bit more some arguments and functions, simplified the create background function and added the thickening and inclusion_buffer method which were not working/available, now accepts the - in soilgrids variable names, reduced the resolution for faster runs

Copy link
Contributor

@jmlord jmlord left a comment

Choose a reason for hiding this comment

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

Someone needs to review the R code

pipelines/SDM/SDM_maxEnt.json Show resolved Hide resolved
@tpoisot
Copy link

tpoisot commented Oct 12, 2023

Any thoughts about using maxnet instead of maxent.jar? The differences are covered in the paper (https://onlinelibrary.wiley.com/doi/10.1111/ecog.03049), and the results are about the same, with no need for an extra java (closed-source) dependency?

@frousseu
Copy link
Contributor Author

From my limited experience, maxent.jar seems faster and less buggy than maxnet, but I agree maxnet is more open-source and has fewer dpendencies. I changed the algorithm to maxent.jar, because it scales variables behing the scene, while maxnet does not and I was running into numerical problems resulting from non-scaled variables. We could easily scale variables ourselves, but it can be a bit of a pain when exploring results and I wanted to avoid that. Another option could be to wait for maxnet to scale variables mrmaxent/maxnet#24 (or to submit a pull request to maxnet to allow for scaling in glmnet).

#' @param obs data.frame, containing the observations. Used with method == "thickening" or "inclusion_buffer"
#' @param width_buffer int, buffer width around observations. Used with method == "inclusion_buffer"
#' @param species string, species name.
#' @param predictors SpatRasterr, containing the predictor variables
Copy link
Contributor

Choose a reason for hiding this comment

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

SpatRaster

@glaroc glaroc merged commit 30fc263 into main Nov 14, 2023
2 checks passed
@jmlord jmlord deleted the sdm branch November 14, 2023 21:37
biorey pushed a commit to PEM-Humboldt/biab-2.0 that referenced this pull request Jul 15, 2024
Maxent pipeline: some docs, bug fix, defaults and simplified create background function
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.

4 participants