lale.search.PGO module¶
- 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¶
- 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