RunFunction Class
Run Function.
- Inheritance
-
azure.ai.ml.entities._job.parallel.parallel_task.ParallelTaskRunFunction
Constructor
RunFunction(*, code: str | None = None, entry_script: str | None = None, program_arguments: str | None = None, model: str | None = None, append_row_to: str | None = None, environment: Environment | str | None = None, **kwargs: Any)
Parameters
Name | Description |
---|---|
code
Required
|
A local or remote path pointing at source code. |
entry_script
Required
|
User script which will be run in parallel on multiple nodes. This is
specified as a local file path.
The entry_script should contain two functions:
|
program_arguments
Required
|
The arguments of the parallel task. |
model
Required
|
The model of the parallel task. |
append_row_to
Required
|
All values output by run() method invocations will be aggregated into one unique file which is created in the output location. if it is not set, 'summary_only' would invoked, which means user script is expected to store the output itself. |
environment
Required
|
Environment that training job will run in. |
Keyword-Only Parameters
Name | Description |
---|---|
code
Required
|
|
entry_script
Required
|
|
program_arguments
Required
|
|
model
Required
|
|
append_row_to
Required
|
|
environment
Required
|
|
Methods
get | |
has_key | |
items | |
keys | |
update | |
values |
get
get(key: Any, default: Any | None = None) -> Any
Parameters
Name | Description |
---|---|
key
Required
|
|
default
|
Default value: None
|
has_key
has_key(k: Any) -> bool
Parameters
Name | Description |
---|---|
k
Required
|
|
items
items() -> list
keys
keys() -> list
update
update(*args: Any, **kwargs: Any) -> None
values
values() -> list
Azure SDK for Python