-
Notifications
You must be signed in to change notification settings - Fork 234
/
azure.ai.ml.entities.MaterializationSettings.yml
58 lines (58 loc) · 2.94 KB
/
azure.ai.ml.entities.MaterializationSettings.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
### YamlMime:PythonClass
uid: azure.ai.ml.entities.MaterializationSettings
name: MaterializationSettings
fullName: azure.ai.ml.entities.MaterializationSettings
module: azure.ai.ml.entities
inheritances:
- azure.ai.ml.entities._mixins.RestTranslatableMixin
summary: Defines materialization settings.
constructor:
syntax: '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: Any)'
parameters:
- name: kwargs
description: A dictionary of additional configuration parameters.
isRequired: true
types:
- <xref:dict>
keywordOnlyParameters:
- name: schedule
description: The schedule details. Defaults to None.
types:
- <xref:typing.Optional>[<xref:azure.ai.ml.entities.RecurrenceTrigger>]
- name: offline_enabled
description: Boolean that specifies if offline store is enabled. Defaults to None.
types:
- <xref:typing.Optional>[<xref:bool>]
- name: online_enabled
description: Boolean that specifies if online store is enabled. Defaults to None.
types:
- <xref:typing.Optional>[<xref:bool>]
- name: notification
description: The notification details. Defaults to None.
types:
- <xref:typing.Optional>[<xref:azure.ai.ml.entities.Notification>]
- name: resource
description: The compute resource settings. Defaults to None.
types:
- <xref:typing.Optional>[<xref:azure.ai.ml.entities.MaterializationComputeResource>]
- name: spark_configuration
description: The spark compute settings. Defaults to None.
types:
- <xref:typing.Optional>[<xref:dict>[<xref:str>, <xref:str>]]
examples:
- "Configuring MaterializationSettings.<!--[!code-python[Main](les\\ml_samples_spark_configurations.py\
\ )]-->\n\n<!-- literal_block {\"ids\": [], \"classes\": [], \"names\": [], \"dupnames\"\
: [], \"backrefs\": [], \"source\": \"C:\\\\hostedtoolcache\\\\windows\\\\Python\\\
\\3.11.9\\\\x64\\\\Lib\\\\site-packages\\\\py2docfx\\\\dist_temp\\\\8\\\\azure_ai_ml-1.18.0\\\
\\samples\\\\ml_samples_spark_configurations.py\", \"xml:space\": \"preserve\",\
\ \"force\": false, \"language\": \"python\", \"highlight_args\": {\"linenostart\"\
: 1}, \"linenos\": false} -->\n\n````python\n\n from azure.ai.ml.entities import\
\ MaterializationComputeResource, MaterializationSettings\n\n materialization_settings\
\ = MaterializationSettings(\n offline_enabled=True,\n spark_configuration={\n\
\ \"spark.driver.cores\": 2,\n \"spark.driver.memory\": \"18g\"\
,\n \"spark.executor.cores\": 4,\n \"spark.executor.memory\"\
: \"18g\",\n \"spark.executor.instances\": 5,\n },\n resource=MaterializationComputeResource(instance_type=\"\
standard_e4s_v3\"),\n )\n\n ````\n"