EnricherCountryRegionSelector class

Definition

CountryRegion related fundamental calculations, all are static member functions.

EnricherCountryRegionSelector()
Inheritance
EnricherCountryRegionSelector

Methods

countryregion_join(env, customer_data: azureml.opendatasets.accessories.country_region_data.CountryOrRegionData, public_data: azureml.opendatasets.accessories.country_region_data.CountryOrRegionData, aggregator: azureml.opendatasets.aggregators.aggregator.Aggregator, join_keys: list = None, debug: bool = False) -> typing.Tuple[[azureml.opendatasets.accessories.country_region_data.CountryOrRegionData, azureml.opendatasets.accessories.country_region_data.CountryOrRegionData], typing.List[typing.Tuple[str, str]]]

Join customer data with public data, with aggregator applied.

process(env: azureml.opendatasets.environ.RuntimeEnv, customer_data: azureml.opendatasets.accessories.country_region_data.CountryOrRegionData, public_data: azureml.opendatasets.accessories.country_region_data.CountryOrRegionData, aggregator: azureml.opendatasets.aggregators.aggregator.Aggregator, join_keys: list = None, debug: bool = False) -> typing.Tuple[[azureml.opendatasets.accessories.country_region_data.CountryOrRegionData, azureml.opendatasets.accessories.country_region_data.CountryOrRegionData], typing.List[typing.Tuple[str, str]]]

Do enrichment for customer data with specified aggregator for public data.

countryregion_join(env, customer_data: azureml.opendatasets.accessories.country_region_data.CountryOrRegionData, public_data: azureml.opendatasets.accessories.country_region_data.CountryOrRegionData, aggregator: azureml.opendatasets.aggregators.aggregator.Aggregator, join_keys: list = None, debug: bool = False) -> typing.Tuple[[azureml.opendatasets.accessories.country_region_data.CountryOrRegionData, azureml.opendatasets.accessories.country_region_data.CountryOrRegionData], typing.List[typing.Tuple[str, str]]]

Join customer data with public data, with aggregator applied.

countryregion_join(env, customer_data: azureml.opendatasets.accessories.country_region_data.CountryOrRegionData, public_data: azureml.opendatasets.accessories.country_region_data.CountryOrRegionData, aggregator: azureml.opendatasets.aggregators.aggregator.Aggregator, join_keys: list = None, debug: bool = False) -> typing.Tuple[[azureml.opendatasets.accessories.country_region_data.CountryOrRegionData, azureml.opendatasets.accessories.country_region_data.CountryOrRegionData], typing.List[typing.Tuple[str, str]]]

Parameters

customer_data

an instance of CountryOrRegionData class for customer data

public_data

an instance of CountryOrRegionData class for public data

aggregator

a specified aggregator

join_keys

list of join key pairs

debug

print debug logs if True

Returns

a tuple of: altered customer data class instance altered public data class instance a list of join key pairs

process(env: azureml.opendatasets.environ.RuntimeEnv, customer_data: azureml.opendatasets.accessories.country_region_data.CountryOrRegionData, public_data: azureml.opendatasets.accessories.country_region_data.CountryOrRegionData, aggregator: azureml.opendatasets.aggregators.aggregator.Aggregator, join_keys: list = None, debug: bool = False) -> typing.Tuple[[azureml.opendatasets.accessories.country_region_data.CountryOrRegionData, azureml.opendatasets.accessories.country_region_data.CountryOrRegionData], typing.List[typing.Tuple[str, str]]]

Do enrichment for customer data with specified aggregator for public data.

process(env: azureml.opendatasets.environ.RuntimeEnv, customer_data: azureml.opendatasets.accessories.country_region_data.CountryOrRegionData, public_data: azureml.opendatasets.accessories.country_region_data.CountryOrRegionData, aggregator: azureml.opendatasets.aggregators.aggregator.Aggregator, join_keys: list = None, debug: bool = False) -> typing.Tuple[[azureml.opendatasets.accessories.country_region_data.CountryOrRegionData, azureml.opendatasets.accessories.country_region_data.CountryOrRegionData], typing.List[typing.Tuple[str, str]]]

Parameters

customer_data

an instance of CountryOrRegionData class

public_data

an instance of CountryOrRegionData class

aggregator

a specified aggregator

join_keys

list of join key pairs

debug

print debug logs if True

Returns

a tuple of: altered customer data class instance altered public data class instance a list of join key pairs