Skip to content
Closed
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "workspace-1234",
"workspaceName": "testworkspace",
"api-version": "2020-09-01-preview",
"id": "testId",
"body": {
"properties": {
"jobType": "Command",
"codeConfiguration": {
"codeArtifactId": "some code artifact",
"command": [
"python",
"train.py",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

train.py", [](start = 13, length = 10)

How are these scripts put in the workspace?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CodeArtifactId refers to a CodeVersion: #10876

CodeVersion manages files (via blob url). You can create a CodeVersion as a blob file or blob directory. In the Job, you can reference these files.

"--arg",
"myArgument"
]
},
"environmentId": "some environment",
"dataBindings": {
"data binding 1": {
"sourceDataReference": "some data reference 1",
"localReference": "./",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

localReference [](start = 13, length = 14)

how is the data being referred?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to above (#11073 (comment)), sourceDataReference refers to a DataVersion. localReference is the path in the DataVersion (#11043)

"mode": "Mount"
},
"data binding 2": {
"sourceDataReference": "some data reference 2",
"localReference": "./",
"mode": "Mount"
}
},
"experimentName": "some experiment",
"properties": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"tags": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what are these tags? Objects already have top level tags.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a proxy resource (which do not have top level tags/properties). Will reach out via email to discuss (we've had a similar discussion before #10421 (comment)).

"computeBinding": {
"computeId": "some compute",
"nodeCount": 2
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/jobs/testId",
"name": "testId",
"type": "Microsoft.MachineLearningServices/workspaces/jobs",
"properties": {
"jobType": "Command",
"status": "NotStarted",
"codeConfiguration": {
"codeArtifactId": "some code artifact",
"command": [
"python",
"train.py",
"--arg",
"myArgument"
]
},
"environmentId": "some environment",
"dataBindings": {
"data binding 1": {
"sourceDataReference": "some data reference 1",
"localReference": "./",
"mode": "Mount"
},
"data binding 2": {
"sourceDataReference": "some data reference 2",
"localReference": "./",
"mode": "Mount"
}
},
"id": "testId",
"experimentName": "some experiment",
"properties": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"tags": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"computeBinding": {
"computeId": "some compute",
"nodeCount": 2
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "workspace-1234",
"workspaceName": "testworkspace",
"api-version": "2020-09-01-preview",
"id": "testId"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/jobs/testId",
"name": "testId",
"type": "Microsoft.MachineLearningServices/workspaces/jobs",
"properties": {
"jobType": "Command",
"status": "Completed",
"codeConfiguration": {
"codeArtifactId": "some code artifact",
"command": [
"python",
"train.py",
"--arg",
"myArgument"
]
},
"environmentId": "some environment",
"dataBindings": {
"data binding 1": {
"sourceDataReference": "some data reference 1",
"localReference": "./",
"mode": "Mount"
},
"data binding 2": {
"sourceDataReference": "some data reference 2",
"localReference": "./",
"mode": "Mount"
}
},
"id": "testId",
"experimentName": "some experiment",
"properties": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"tags": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"computeBinding": {
"computeId": "some compute",
"nodeCount": 2
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "workspace-1234",
"workspaceName": "testworkspace",
"api-version": "2020-09-01-preview",
"$skipToken": "skiptoken"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/jobs/testId1",
"name": "testId1",
"type": "Microsoft.MachineLearningServices/workspaces/jobs",
"properties": {
"jobType": "Command",
"status": "Completed",
"codeConfiguration": {
"codeArtifactId": "some code artifact",
"command": [
"python",
"train.py",
"--arg",
"myArgument"
]
},
"environmentId": "some environment",
"dataBindings": {
"data binding 1": {
"sourceDataReference": "some data reference 1",
"localReference": "./",
"mode": "Mount"
},
"data binding 2": {
"sourceDataReference": "some data reference 2",
"localReference": "./",
"mode": "Mount"
}
},
"id": "testId1",
"experimentName": "some experiment",
"properties": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"tags": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"computeBinding": {
"computeId": "some compute",
"nodeCount": 2
}
}
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/codeJobs/testId2",
"name": "testId2",
"type": "Microsoft.MachineLearningServices/workspaces/jobs",
"properties": {
"jobType": "Command",
"status": "Completed",
"codeConfiguration": {
"codeArtifactId": "some code artifact",
"command": [
"python",
"train.py",
"--arg",
"myArgument"
]
},
"environmentId": "some environment",
"dataBindings": {
"data binding 1": {
"sourceDataReference": "some data reference 1",
"localReference": "./",
"mode": "Mount"
},
"data binding 2": {
"sourceDataReference": "some data reference 2",
"localReference": "./",
"mode": "Mount"
}
},
"id": "testId2",
"experimentName": "some experiment",
"properties": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"tags": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"computeBinding": {
"computeId": "some compute",
"nodeCount": 2
}
}
}
],
"nextLink": "nextlink"
}
}
}
}
Loading