Class: RandomOptimizer

RandomOptimizer(space)

new RandomOptimizer(space)

A random optimization function. Sometimes competitive in practice for hyperparameter tuning for instance.
Parameters:
Name Type Description
space Object An array of dimension descriptors that are used to specify search space or an instance of Space.
Properties:
Name Type Description
X Array An array of arguments tried.
Y Array An array of function values observed. The order corresponds to the order in arguments array.
best_x Array An argument that results in minimal objective function value.
best_y Number Minimal objective value observed.
space Space Optimization space over which the optimization is done.
Source:

Methods

ask(n)

Get the next point or array of points to evaluate.
Parameters:
Name Type Description
n Number Specifies how many points should be provided by the optimizer algorithm to try in parallel. If specified, an array of points to evaluate is returned. If not, only a single point is returned verbatium.
Source:

tell(X, Y)

Report back to the optimizer the points that were tried. Do not really need to do it for random sampling, but this is here for consistency with future more "intelligent" algorithms.
Parameters:
Name Type Description
X Array Array of observed points.
Y Array Array of objective values corresponding to the points that were evaluated.
Source: