ParamSetCollection$flatten()
now detaches$extra_trafo
completely from original ParamSetCollection.- Option to postfix, instead of prefix, in
ParamSetCollection
,c()
/ps_union()
, andps_replicate()
.
- Performance improvements.
- Removed
Param
objects.ParamSet
now uses adata.table
internally; individual parameters are more likeDomain
objects now.ParamSets
should be constructed using theps()
shorthand andDomain
objects. This entails the following major changes:ParamSet
now supportsextra_trafo
natively; it behaves like.extra_trafo
of theps()
call.ParamSet
has$constraint
ParamSet
objects are now less mutable. The only properties that can be changed arevalues
,tags
,deps
,constraint
andextra_trafo
.ParamSet$is_bounded
is a vector with an entry for each parameter. Use$all_bounded
for the previous behavior.Condition
objects are now S3 objects and can be constructed withCondEqual()
andCondAnyOf()
, instead ofCondXyz$new()
. (It is recommended to use theDomain
interface for conditions, which has not changed)ParamSet
has new fields$is_logscale
,$has_trafo_param
(per-param), and$has_trafo_param
(scalar for the whole set).
- Added a vignette which was previously a chapter in the
mlr3book
- feat: added support for
InternalTuneToken
s
- Minor bug fixes.
- feat: The function
generate_design_sobol()
generates a space-filling Sobol sequence design. - refactor:
$set_values
returns the parameter set invisible.
- Reset
.has_extra_trafo
toFALSE
when trafo is set toNULL
. rd_info.ParamSet
collapses vector with"\n"
due changes in roxygen 7.2.0- Add method
set_values()
to conveniently add parameter values.
- Added
default_values()
function to extract default values fromParamSet
objects.
- Parameters now have a new (optional) field
description
. - Improved printing of parameters in documentation (#355).
- A warning is now signaled if the package
ParamHelpers
is also loaded. - Fixed some links.
Sampler1D
also acceptParamSet
s with oneParam
now (#335).- Fixed sampling zero rows in
Sampler1DRfun
(#338). to_tune()
,p_dbl()
, andp_int()
acceptlogscale
argument for tuning on a logarithmic scale.to_tune
can be called with onlylower
or onlyupper
now and will infer the other bound if possible.
ParamSet$get_values()
checks whether all required parameter values are set. Required parameter are not checked anymore when new values are added to the parameter set.ParamSet$check_dt()
acceptsdata.frame
s.- Rename
is_numeric
andis_categorical
toall_numeric
andall_categorical
. - Rename
requires
todepends
.
ps()
shortcuts forParamSet
construction, with newDomain
construct and constructorsp_dbl
,p_int
,p_lgl
,p_fct
, andp_uty
.ParamSet$search_space()
method that constructs tunableParamSet
fromTuneToken
objects, which are constructed withto_tune()
.
- Compact in-memory representation of R6 objects to save space when saving objects via saveRDS(), serialize() etc.
- Improved performance for
ParamSetCollection
.
- New public methods
is_numeric()
andis_categorical()
for parameter sets. - Fixed a test for upcoming release of
data.table()
. - Added a helper function to format parameter sets in Rd files.
- New function
transpose()
convertsdata.table
of parameter values to a list of lists. - New methods
ParamSet$check_dt()
,$assert_dt()
andtest_dt()
can check adata.table
for valid parameter values. - Documentation updated.
- Unified style for object printers.
- Fixed warnings about partial argument matching.
- Enforce integer bounds in ParamInt (#258).
- Reexport
data.table::as.data.table()
. - Deep cloning of
ParamSet$values
(#273).
- Initial release.