Points

Utility functions for manipulating trial points

Conversion functions between higher shape points and lists.

orion.core.utils.points.flatten_dims(point, space)[source]

Flatten point in space and convert it to a list.

Parameters:
point: array

Points to be regrouped.

space: `orion.algo.space.Space`

The optimization space.

Returns:
list
orion.core.utils.points.regroup_dims(point, space)[source]

Take a list of items representing a point and regroup them appropriately as a point from space.

Parameters:
point: array

Points to be regrouped.

space: `orion.algo.space.Space`

The optimization space.

Returns:
list or tuple