-
Notifications
You must be signed in to change notification settings - Fork 5.6k
MachineLearningServices Preview Job API [Do Not Merge] #11073
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
bcc2316
c5eff29
5e217e6
fa6d727
d94508a
a6319d7
e7f1102
b17ce78
d26f7e7
4d8e83c
76b281a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,101 @@ | ||
| { | ||
| "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", | ||
| "--arg", | ||
| "myArgument" | ||
| ] | ||
| }, | ||
| "environmentId": "some environment", | ||
| "dataBindings": { | ||
| "data binding 1": { | ||
| "sourceDataReference": "some data reference 1", | ||
| "localReference": "./", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
how is the data being referred?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar to above (#11073 (comment)), |
||
| "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" | ||
| }, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what are these tags? Objects already have top level tags.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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" | ||
| } | ||
| }, | ||
| "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,59 @@ | ||
| { | ||
| "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" | ||
| } | ||
| }, | ||
| "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,110 @@ | ||
| { | ||
| "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" | ||
| } | ||
| }, | ||
| "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" | ||
| } | ||
| }, | ||
| "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" | ||
| } | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How are these scripts put in the workspace?
There was a problem hiding this comment.
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.