MemorySize

class baybe.searchspace.discrete.MemorySize[source]

Bases: object

Estimated memory size of a SubspaceDiscrete.

Public methods

__init__(*, exp_rep_bytes, exp_rep_shape, ...)

Method generated by attrs for class MemorySize.

Public attributes and properties

exp_rep_bytes

The memory size of the experimental representation dataframe in bytes.

exp_rep_shape

The shape of the experimental representation dataframe.

comp_rep_bytes

The memory size of the computational representation dataframe in bytes.

comp_rep_shape

The shape of the computational representation dataframe.

comp_rep_human_readable

Human-readable memory size of the computational representation dataframe.

exp_rep_human_readable

Human-readable memory size of the experimental representation dataframe.

__init__(*, exp_rep_bytes: float, exp_rep_shape: tuple[int, int], comp_rep_bytes: float, comp_rep_shape: tuple[int, int])

Method generated by attrs for class MemorySize.

For details on the parameters, see Public attributes and properties.

comp_rep_bytes: float

The memory size of the computational representation dataframe in bytes.

property comp_rep_human_readable: tuple[float, str]

Human-readable memory size of the computational representation dataframe.

Consists of a tuple containing memory size and unit.

comp_rep_shape: tuple[int, int]

The shape of the computational representation dataframe.

exp_rep_bytes: float

The memory size of the experimental representation dataframe in bytes.

property exp_rep_human_readable: tuple[float, str]

Human-readable memory size of the experimental representation dataframe.

Consists of a tuple containing memory size and unit.

exp_rep_shape: tuple[int, int]

The shape of the experimental representation dataframe.