flytekitplugins.awssagemaker.ParameterRangeOneOf#

class flytekitplugins.awssagemaker.ParameterRangeOneOf(param)[source]#

Initializes a new ParameterRangeOneOf. :param Union[IntegerParameterRange, ContinuousParameterRange, CategoricalParameterRange] param: One of the

supported parameter ranges.

Methods

Parameters

param (Union[flytekitplugins.awssagemaker.models.parameter_ranges.IntegerParameterRange, flytekitplugins.awssagemaker.models.parameter_ranges.ContinuousParameterRange, flytekitplugins.awssagemaker.models.parameter_ranges.CategoricalParameterRange]) –

classmethod from_flyte_idl(pb_object)[source]#
Parameters

pb_object (Union[flyteidl.plugins.sagemaker.parameter_ranges_pb2.ParameterRangeOneOf, flyteidl.plugins.sagemaker.parameter_ranges_pb2.IntegerParameterRange, flyteidl.plugins.sagemaker.parameter_ranges_pb2.ContinuousParameterRange, flyteidl.plugins.sagemaker.parameter_ranges_pb2.CategoricalParameterRange]) –

short_string()#
Return type

Text

to_flyte_idl()[source]#
Return type

flyteidl.plugins.sagemaker.parameter_ranges_pb2.ParameterRangeOneOf

verbose_string()#
Return type

Text

Attributes

categorical_parameter_range#

Retrieves the categorical parameter range if one is set. None otherwise. :rtype: Optional[CategoricalParameterRange]

continuous_parameter_range#

Retrieves the continuous parameter range if one is set. None otherwise. :rtype: Optional[ContinuousParameterRange]

integer_parameter_range#

Retrieves the integer parameter range if one is set. None otherwise. :rtype: Optional[IntegerParameterRange]

is_empty#