Skip to content

Commit 0cb7e2f

Browse files
committed
refinement of workflow templates
1 parent 7f23b36 commit 0cb7e2f

File tree

5 files changed

+84
-35
lines changed

5 files changed

+84
-35
lines changed

argo-workflow/automlai-dualsearch-template.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,10 @@ spec:
1212
value: iris_reg.csv
1313
- name: predictiontype
1414
value: regression
15-
- name: complexity
16-
value: low
17-
- name: outputloc
18-
value: NONE
1915
- name: folds
2016
value: 3
2117
- name: workers
2218
value: 5
23-
- name: predict_only
24-
value: false
25-
- name: runid
26-
value: NONE
2719
templates:
2820
- name: run-main
2921
inputs:
@@ -83,7 +75,7 @@ spec:
8375
s3:
8476
key: csv/
8577
container:
86-
image: ppalmes/automlai:v2.0
78+
image: ppalmes/automlai:v3.0
8779
command:
8880
args:
8981
- "-t{{inputs.parameters.predictiontype}}"
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: ClusterWorkflowTemplate
3+
metadata:
4+
name: automlai-prediction-classification
5+
spec:
6+
entrypoint: run-prediction-classification
7+
arguments:
8+
parameters:
9+
- name: url
10+
value: http://sunrise-mlflow-tracking.mlflow:5080
11+
- name: input
12+
value: iris.csv
13+
- name: predictiontype
14+
value: classification
15+
- name: runid
16+
value: 8dbea59123ec469db3ee7b807b3ab6d9
17+
templates:
18+
- name: run-prediction-classification
19+
inputs:
20+
parameters:
21+
- name: url
22+
- name: input
23+
- name: predictiontype
24+
- name: runid
25+
artifacts:
26+
- name: file
27+
path: /inputfile
28+
s3:
29+
key: csv/
30+
container:
31+
image: ppalmes/automlai:v3.0
32+
command:
33+
args:
34+
- "-u{{inputs.parameters.url}}"
35+
- "-t{{inputs.parameters.predictiontype}}"
36+
- "-p"
37+
- "-r{{inputs.parameters.runid}}"
38+
- "/inputfile/{{inputs.parameters.input}}"
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: ClusterWorkflowTemplate
3+
metadata:
4+
name: automlai-prediction-regression
5+
spec:
6+
entrypoint: run-prediction-regression
7+
arguments:
8+
parameters:
9+
- name: url
10+
value: http://sunrise-mlflow-tracking.mlflow:5080
11+
- name: input
12+
value: iris_reg.csv
13+
- name: predictiontype
14+
value: regression
15+
- name: runid
16+
value: 064fb7a188d34a3da87f2271b8d8d9c2
17+
templates:
18+
- name: run-prediction-regression
19+
inputs:
20+
parameters:
21+
- name: url
22+
- name: input
23+
- name: predictiontype
24+
- name: runid
25+
artifacts:
26+
- name: file
27+
path: /inputfile
28+
s3:
29+
key: csv/
30+
container:
31+
image: ppalmes/automlai:v3.0
32+
command:
33+
args:
34+
- "-u{{inputs.parameters.url}}"
35+
- "-t{{inputs.parameters.predictiontype}}"
36+
- "-p"
37+
- "-r{{inputs.parameters.runid}}"
38+
- "/inputfile/{{inputs.parameters.input}}"

argo-workflow/automlai-prediction-template.yaml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ spec:
77
arguments:
88
parameters:
99
- name: url
10-
value: http://mlflow.isiath.duckdns.org:8082
10+
value: http://sunrise-mlflow-tracking.mlflow:5080
1111
- name: input
1212
value: iris_reg.csv
1313
- name: predictiontype
1414
value: regression
15-
- name: outputloc
16-
value: output.txt
1715
- name: runid
1816
value: 064fb7a188d34a3da87f2271b8d8d9c2
1917
templates:
@@ -23,26 +21,18 @@ spec:
2321
- name: url
2422
- name: input
2523
- name: predictiontype
26-
- name: outputloc
2724
- name: runid
2825
artifacts:
2926
- name: file
3027
path: /inputfile
3128
s3:
3229
key: csv/
3330
container:
34-
image: ppalmes/automlai:v2.0
31+
image: ppalmes/automlai:v3.0
3532
command:
3633
args:
37-
- "-u {{inputs.parameters.url}}"
38-
- "-t {{inputs.parameters.predictiontype}}"
39-
- "-o /outputfile"
40-
- "--predict_only"
41-
- "--runid {{inputs.parameters.runid}}"
34+
- "-u{{inputs.parameters.url}}"
35+
- "-t{{inputs.parameters.predictiontype}}"
36+
- "-p"
37+
- "-r{{inputs.parameters.runid}}"
4238
- "/inputfile/{{inputs.parameters.input}}"
43-
outputs:
44-
artifacts:
45-
- name: ofile
46-
path: /outputfile
47-
s3:
48-
key: "output/{{inputs.parameters.predictiontype}}_{{inputs.parameters.input}}_{{inputs.parameters.outputloc}}.tgz"

argo-workflow/automlai-unisearch-template.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,10 @@ spec:
1414
value: regression
1515
- name: complexity
1616
value: low
17-
- name: outputloc
18-
value: NONE
1917
- name: folds
2018
value: 3
2119
- name: workers
2220
value: 5
23-
- name: predict_only
24-
value: false
25-
- name: runid
26-
value: NONE
2721
templates:
2822
- name: run-amlp
2923
inputs:
@@ -32,18 +26,15 @@ spec:
3226
- name: input
3327
- name: predictiontype
3428
- name: complexity
35-
- name: outputloc
3629
- name: folds
3730
- name: workers
38-
- name: predict_only
39-
- name: runid
4031
artifacts:
4132
- name: file
4233
path: /inputfile
4334
s3:
4435
key: csv/
4536
container:
46-
image: ppalmes/automlai:v2.0
37+
image: ppalmes/automlai:v3.0
4738
command:
4839
args:
4940
- "-u{{inputs.parameters.url}}"

0 commit comments

Comments
 (0)