BayesianMaximization

BayesianMaximization[f,{conf1,conf2,}]

gives an object representing the result of Bayesian maximization over the function f over the configurations confi.

BayesianMaximization[f,reg]

maximizes over the region represented by the region specification reg.

BayesianMaximization[f,sampler]

maximizes over configurations obtained by applying the function sampler.

BayesianMaximization[f,{conf1,conf2,}nsampler]

applies the function nsampler to successively generate configurations starting from the confi.

Details and Options

  • BayesianMaximization[] returns a BayesianMaximizationObject[] whose properties can be obtained using BayesianMaximizationObject[]["prop"].
  • Possible properties include:
  • "EvaluationHistory"configurations and values explored during maximization
    "MaximumConfiguration"configuration found that maximizes the result from f
    "MaximumValue"estimated maximum value obtained from f
    "Method"method used for Bayesian maximization
    "NextConfiguration"configuration to sample next if maximization were continued
    "PredictorFunction"best prediction model found for the function f
    "Properties"list of all available properties
  • Configurations can be of any form accepted by Predict (single data element, list of data elements, association of data elements, etc.) and of any type accepted by Predict (numerical, textual, sounds, images, etc.).
  • The function f must output a real-number value when applied to a configuration conf.
  • BayesianMaximization[f,] attempts to find a good maximum using the smallest number of evaluations of f.
  • In BayesianMaximization[f,spec], spec defines the domain of the function f. A domain can be defined by a list of configurations, a geometric region, or a configuration generator function.
  • In BayesianMaximization[f,sampler], sampler[] must output a configuration suitable for f to be applied to it.
  • In BayesianMaximization[f,{conf1,conf2,}nsampler], nsampler[conf] must output a configuration suitable for f to be applied to it.
  • BayesianMaximization takes the following options:
  • AssumeDeterministicFalsewhether to assume that f is deterministic
    InitialEvaluationHistoryNoneinitial set of configurations and values
    MaxIterations100maximum number of iterations
    MethodAutomaticmethod used to determine configurations to evaluate
  • Possible settings for Method include:
  • Automaticautomatically choose the method
    "MaxExpectedImprovement"maximize expected improvement over current best value
    "MaxImprovementProbability"maximize improvement probability over current best value

Examples

open allclose all

Basic Examples  (3)

Maximize a function over an interval:

In[1]:=
Click for copyable input
Out[1]=

Use the resulting BayesianMaximizationObject[] to get the estimated maximum configuration:

In[2]:=
Click for copyable input
Out[2]=

Get the estimated maximum function value:

In[3]:=
Click for copyable input
Out[3]=

Maximize a function over a set of configurations:

In[1]:=
Click for copyable input
Out[1]=

Get the maximum configuration over the set:

In[2]:=
Click for copyable input
Out[2]=

Maximize a function over a domain defined by a random generator:

In[1]:=
Click for copyable input
Out[1]=

Get the estimated maximum value:

In[2]:=
Click for copyable input
Out[2]=

Scope  (4)

Options  (4)

Applications  (2)

Possible Issues  (2)

See Also

BayesianMinimization  BayesianMaximizationObject  NMaximize  FindMaximum  Predict

Introduced in 2016
(11.0)