Delen via


MaterializationSettings Klas

Notitie

Dit is een experimentele klasse en kan op elk gewenst moment worden gewijzigd. Zie https://aka.ms/azuremlexperimental voor meer informatie.

Hiermee definieert u materialisatie-instellingen.

Overname
azure.ai.ml.entities._mixins.RestTranslatableMixin
MaterializationSettings

Constructor

MaterializationSettings(*, schedule: RecurrenceTrigger | None = None, offline_enabled: bool | None = None, online_enabled: bool | None = None, notification: Notification | None = None, resource: MaterializationComputeResource | None = None, spark_configuration: Dict[str, str] | None = None, **kwargs)

Parameters

schedule
Optional[RecurrenceTrigger]

De planningsgegevens.

offline_enabled
Optional[bool]

Hiermee geeft u op of offline store is ingeschakeld.

online_enabled
Optional[bool]

Hiermee geeft u op of online winkel is ingeschakeld.

notification
Optional[Notification]

De details van de melding.

resource
Optional[MaterializationComputeResource]

De instellingen van de rekenresource.

spark_configuration
Optional[dict[str, str]]

De spark-rekeninstellingen.

Voorbeelden

MaterializationSettings configureren.


   from azure.ai.ml.entities import MaterializationComputeResource, MaterializationSettings

   materialization_settings = MaterializationSettings(
       offline_enabled=True,
       spark_configuration={
           "spark.driver.cores": 2,
           "spark.driver.memory": "18g",
           "spark.executor.cores": 4,
           "spark.executor.memory": "18g",
           "spark.executor.instances": 5,
       },
       resource=MaterializationComputeResource(instance_type="standard_e4s_v3"),
   )