slds-lmu / yahpo_gym

Surrogate benchmarks for HPO problems
27 stars 4 forks source link

yahpo r - future interaction #28

Closed pfistfl closed 2 years ago

pfistfl commented 2 years ago
library("yahpogym")
library("bbotk")

options(future.globals.onReference = "error")
reticulate::use_condaenv("yahpo_gym", required=TRUE)

b = BenchmarkSet$new("iaml_xgboost")
objective = b$get_objective("40981", timed = TRUE)

xdt = generate_design_random(b$get_search_space(), 1)$data
xss_trafoed = transform_xdt_to_xss(xdt, b$get_search_space())

future::plan("multisession")
promise = future::future(objective$eval_many(xss_trafoed), packages = "yahpogym")
pfistfl commented 2 years ago

Solved for now, see Readme.md.