Comments (2)
The tuning is based on functionalities from mlr3tuning
. Therefore, https://mlr3book.mlr-org.com/optimization.html#optimization is often a good resource for such questions.
One way to achieve the requested logarithmic spacing is by applying transformations (see also https://mlr3book.mlr-org.com/optimization.html#tuning). To be more specific, you can use
par_grids = list(
"ml_g" = paradox::ps(lambda=paradox::p_dbl(-5, 1, trafo = function(x) 10^x)),
"ml_m" = ParamSet$new(list(
ParamDbl$new("lambda", lower = 0.05, upper = 0.1))))
tune_settings = list(terminator = trm("evals", n_evals = 100),
algorithm = tnr("grid_search", resolution = 7),
rsmp_tune = rsmp("cv", folds = 5),
measure = list("ml_g" = msr("regr.mse"),
"ml_m" = msr("regr.mse")))
doubleml_plr$tune(param_set = par_grids, tune_settings = tune_settings)
doubleml_plr$tuning_res
doubleml_plr$tuning_res$X1$ml_g[[1]]$tuning_result[[1]]$tuning_archive %>% arrange(lambda)
This way you get the requested logarithmic spacing for the lambda
parameter values.
Note that in doubleml_plr$tuning_res$X1$ml_g[[1]]$tuning_result[[1]]$tuning_archive
and doubleml_plr$tuning_res$X1$ml_g[[1]]$tuning_result[[1]]$tuning_result
the lambda
entries seem to be pre-transformation (basically the exponents of trafo = function(x) 10^x
). In contrast the x_domain
/ learner_param_vals
columns seem to contain the transformed / actual parameter values. Note that we here just pass-through the tuning result
and archive
from mlr3tuning
where the tables are filled this way.
from doubleml-for-r.
This is great, thank you!
from doubleml-for-r.
Related Issues (20)
- Unit test for the extraction of predictions fails for non-glmnet learner HOT 1
- Support for Categorical D in PLIV HOT 1
- Support for ensemble multiple learners for ml_g and ml_m HOT 2
- Make DoubleML available for R (≥ 4.0.2) HOT 1
- Failing builds on github actions with development version of mlr3 HOT 2
- [Bug]: the result of Lasso learner is different from others
- [Bug]: Unable to perform ensemble learners HOT 2
- Depreciation warning when applying pkgdown
- [Bug]: Tuning with default `tune_settings` fails
- [Bug]: Tuning with default `tune_settings` fails
- Inconsistent initilization of `task_type` between PLIV and other models (PLR, IRM, IIVM) HOT 3
- [Bug]: Tuning fails with non-meaningful error message when `tune_settings$measure` real subset of the nuisance parts HOT 3
- [Unit Test Extension]: Implement "default setting unit tests"
- [CRAN]: Issue with html check HOT 1
- [API Documentation]: Include documentation for `store_models` option in `DoubleML$fit()`
- [Feature Request]: In IRM Model , allow for different learners for `g0` and `g1`
- [Feature Request]: Classification Learner for `ml_l` HOT 4
- Update workflows for deploy of docu
- [Bug]: `store_predictions=TRUE` in `fit()` does not save results with more than one treatment
- [Feature Request]: Observation weights HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doubleml-for-r.