lale.search.PGO module

class lale.search.PGO.DefaultValue(value)[source]

Bases: Enum

An enumeration.

token = 0
class lale.search.PGO.FrequencyDistribution(freqs: ~typing.Iterable[~typing.Tuple[~typing.Union[~lale.search.PGO.DefaultValue, ~lale.search.PGO.T], int]], dtype=<class 'object'>)[source]

Bases: Generic[T]

Represents the distribution implied by a histogram

classmethod asEnumValues(freqs: Iterable[Tuple[Any, int]], values: List[Any]) FrequencyDistribution[Any][source]
classmethod asFloatValues(freqs: Iterable[Tuple[Any, int]], inclusive_min: Optional[float] = None, inclusive_max: Optional[float] = None) FrequencyDistribution[float][source]
classmethod asIntegerValues(freqs: Iterable[Tuple[Any, int]], inclusive_min: Optional[float] = None, inclusive_max: Optional[float] = None) FrequencyDistribution[int][source]
cumulative_freqs: ndarray
freq_dist: ndarray
sample() T[source]
samples(count: int) Sequence[T][source]
vals: ndarray
lale.search.PGO.freqsAsEnumValues(freqs: Iterable[Tuple[Any, int]], values: List[Any]) Iterator[Tuple[Union[DefaultValue, Any], int]][source]

only keeps things that match the string representation of values in the enumeration. converts from the string to the value as represented in the enumeration.

lale.search.PGO.freqsAsFloatValues(freqs: Iterable[Tuple[Any, int]], inclusive_min: Optional[float] = None, inclusive_max: Optional[float] = None) Iterator[Tuple[Union[DefaultValue, float], int]][source]

maps the str values to integers, and skips anything that does not look like an integer

lale.search.PGO.freqsAsIntegerValues(freqs: Iterable[Tuple[Any, int]], inclusive_min: Optional[float] = None, inclusive_max: Optional[float] = None) Iterator[Tuple[Union[DefaultValue, int], int]][source]

maps the str values to integers, and skips anything that does not look like an integer

lale.search.PGO.load_pgo_data(json_data) Dict[str, Dict[str, Dict[str, int]]][source]
lale.search.PGO.load_pgo_file(filepath) Dict[str, Dict[str, Dict[str, int]]][source]
lale.search.PGO.normalize_pgo_type(data: Dict[str, Dict[str, Union[int, Dict[str, Union[str, int]]]]]) Dict[str, Dict[str, Dict[str, int]]][source]
lale.search.PGO.remove_defaults_dict(d: Dict[XDK, Union[DefaultValue, XDV]]) Dict[XDK, XDV][source]