Skip to content

Commit 04a2fa4

Browse files
committed
docs: readme, vignette, ...; version to 0.1.1
1 parent fa56d4e commit 04a2fa4

File tree

6 files changed

+57
-52
lines changed

6 files changed

+57
-52
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: mlr3mbo
33
Title: Flexible Bayesian Optimization in R
4-
Version: 0.0.0.9000
4+
Version: 0.1.1
55
Authors@R: c(
66
person("Lennart", "Schneider", , "[email protected]", role = c("cre", "aut"),
77
comment = c(ORCID = "0000-0003-4152-5308")),

NEWS.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
# mlr3mbo 0.0.0.9000
1+
# mlr3mbo 0.1.1
2+
3+
* Initial upload to CRAN.
24

README.Rmd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ An overview and gentle introduction is given in [this vignette](https://mlr3mbo.
3131
* `AcqFunction`: Acquisition Function
3232
* `AcqOptimizer`: Acquisition Function Optimizer
3333

34-
Based on these, Bayesian optimization loops can be written, see, e.g., `bayesopt_ego` for sequential single objective BO.
34+
Based on these, Bayesian optimization loops can be written, see, e.g., `bayesopt_ego` for sequential single-objective BO.
3535

3636
`mlr3mbo` also provides an `OptimizerMbo` class behaving like any other `Optimizer` from the [bbotk](https://cran.r-project.org/package=bbotk) package as well as
3737
a `TunerMbo` class behaving like any other `Tuner` from the [mlr3tuning](https://cran.r-project.org/package=mlr3tuning) package.
@@ -41,7 +41,7 @@ See `?mbo_defaults` for more details.
4141

4242
## Simple Optimization Example
4343

44-
Minimize `y = x^2` via sequential single-objective BO using a GP as surrogate and EI optimized via random search as acquisition function:
44+
Minimize `f(x) = x^2` via sequential single-objective BO using a GP as surrogate and EI optimized via random search as acquisition function:
4545

4646
```{r, message = FALSE}
4747
library(bbotk)
@@ -51,7 +51,7 @@ set.seed(1)
5151
5252
obfun = ObjectiveRFun$new(
5353
fun = function(xs) list(y1 = xs$x ^ 2),
54-
domain = ps(x = p_dbl(lower = -5, upper = 5)),
54+
domain = ps(x = p_dbl(lower = -10, upper = 10)),
5555
codomain = ps(y1 = p_dbl(tags = "minimize")))
5656
5757
instance = OptimInstanceSingleCrit$new(
@@ -96,8 +96,8 @@ optimizer = opt("mbo",
9696
result = bb_optimize(
9797
fun,
9898
method = optimizer,
99-
lower = c(x = -5),
100-
upper = c(x = 5),
99+
lower = c(x = -10),
100+
upper = c(x = 10),
101101
max_evals = 10)
102102
```
103103

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ vignette](https://mlr3mbo.mlr-org.com/articles/mlr3mbo.html).
2727
- `AcqOptimizer`: Acquisition Function Optimizer
2828

2929
Based on these, Bayesian optimization loops can be written, see, e.g.,
30-
`bayesopt_ego` for sequential single objective BO.
30+
`bayesopt_ego` for sequential single-objective BO.
3131

3232
`mlr3mbo` also provides an `OptimizerMbo` class behaving like any other
3333
`Optimizer` from the [bbotk](https://cran.r-project.org/package=bbotk)
@@ -41,7 +41,7 @@ more details.
4141

4242
## Simple Optimization Example
4343

44-
Minimize `y = x^2` via sequential single-objective BO using a GP as
44+
Minimize `f(x) = x^2` via sequential single-objective BO using a GP as
4545
surrogate and EI optimized via random search as acquisition function:
4646

4747
``` r
@@ -52,7 +52,7 @@ set.seed(1)
5252

5353
obfun = ObjectiveRFun$new(
5454
fun = function(xs) list(y1 = xs$x ^ 2),
55-
domain = ps(x = p_dbl(lower = -5, upper = 5)),
55+
domain = ps(x = p_dbl(lower = -10, upper = 10)),
5656
codomain = ps(y1 = p_dbl(tags = "minimize")))
5757

5858
instance = OptimInstanceSingleCrit$new(
@@ -74,7 +74,7 @@ optimizer$optimize(instance)
7474
```
7575

7676
## x x_domain y1
77-
## 1: 0.01948605 <list[1]> 0.000379706
77+
## 1: 0.03897209 <list[1]> 0.001518824
7878

7979
Note that you can also use `bb_optimize` as a shorthand:
8080

@@ -100,8 +100,8 @@ optimizer = opt("mbo",
100100
result = bb_optimize(
101101
fun,
102102
method = optimizer,
103-
lower = c(x = -5),
104-
upper = c(x = 5),
103+
lower = c(x = -10),
104+
upper = c(x = 10),
105105
max_evals = 10)
106106
```
107107

man/mlr3mbo-package.Rd

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)