Skip to content

Error in Bayesian optimization section of vignettes/mlexperiments_starter Examples #2

@longhua8800w

Description

@longhua8800w

Description:
When using the example code from the mlexperiments package vignette, the Bayesian optimization section throws an error.

Error Message:
Stopping process and returning results so far. Could not apply noise to get enough random new parameter sets. This happens if all of your parameters are integers. Try decreasing iters.k

Reproduction Steps:

Run the Bayesian optimization example code from vignettes/mlexperiments_starter

Use the execute(k = 3) method

The above error occurs

sessionInfo()
R version 4.5.1 (2025-06-13 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 10 x64 (build 19045)

Matrix products: default
LAPACK version 3.12.1

locale:
[1] LC_COLLATE=Chinese (Simplified)_China.utf8 LC_CTYPE=Chinese (Simplified)_China.utf8 LC_MONETARY=Chinese (Simplified)_China.utf8 LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_China.utf8

time zone: Asia/Shanghai
tzcode source: internal

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] mlbench_2.1-6 mlexperiments_0.0.7

loaded via a namespace (and not attached):
[1] kdry_0.0.2 gtable_0.3.6 dplyr_1.1.4 compiler_4.5.1 ggsignif_0.6.4 crayon_1.5.3
[7] tidyselect_1.2.1 Rcpp_1.1.0 parallel_4.5.1 tidyr_1.3.1 progress_1.2.3 scales_1.4.0
[13] ggplot2_3.5.2 R6_2.6.1 dbscan_1.2.3 ggpubr_0.6.1 generics_0.1.4 Formula_1.2-5
[19] backports_1.5.0 iterators_1.0.14 tibble_3.3.0 car_3.1-3 ParBayesianOptimization_1.2.6 pillar_1.11.0
[25] RColorBrewer_1.1-3 rlang_1.1.6 broom_1.0.9 DiceKriging_1.6.0 doParallel_1.0.17 cli_3.6.5
[31] magrittr_2.0.3 measures_0.3 class_7.3-23 mllrnrs_0.0.6 foreach_1.5.2 grid_4.5.1
[37] rstudioapi_0.17.1 hms_1.1.3 splitTools_1.0.1 lifecycle_1.0.4 prettyunits_1.2.0 vctrs_0.6.5
[43] rstatix_0.7.2 glue_1.8.0 data.table_1.17.8 farver_2.1.2 lhs_1.2.0 codetools_0.2-20

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions