-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add Latin hypercube sampling #59
Conversation
Needed for reproducibility
R/main.R
Outdated
@@ -33,6 +33,8 @@ | |||
#' @param aType Scenario type: either "Reference" or "Hindcast" | |||
#' @param aIncludeSubsidies Boolean indicating subsidies should be added to profit | |||
#' @param aDifferentiateParamByCrop Boolean indicating whether all crops should use the same expectation parameters | |||
#' @param aUseLatinHypercube Boolean indicating that Latin Hypercube Sampling should be used (if FALSE, sobol sequences will be used) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Butting in on your PR, sorry. Would a better long term design be sampling_type = c("latin_hypercube", "sobol")
? I.e. if you wanted to allow for more options down the road?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the failing tests on the PR builds, which we have maybe narrowed down to dplyr updates, it looks good. Do we, however, need to update the DESCRIPTION
file to add lhs
to the imports?
dplyr causes problems when run in the package checks, so remove the dependence.
Codecov Report
@@ Coverage Diff @@
## master #59 +/- ##
==========================================
- Coverage 88.59% 88.58% -0.02%
==========================================
Files 22 22
Lines 1666 1664 -2
==========================================
- Hits 1476 1474 -2
Misses 190 190
Continue to review full report at Codecov.
|
Provide two options for sampling: latin hypercube and Sobol. Also, updates limits on parameter values.