-
Notifications
You must be signed in to change notification settings - Fork 0
/
train.yaml
39 lines (39 loc) · 1.02 KB
/
train.yaml
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
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: train
spec:
templates:
- name: train
inputs:
parameters:
- name: test_size
value: 0.33
- name: random_state
value: 42
artifacts:
- name: data
path: /home/anaconda/iris.data
container:
image: evamicur/simple-ml
args: ["train", "--data={{inputs.artifacts.data.path}}", "--output={{outputs.artifacts.model.path}}"]
resources:
limits:
memory: 1Gi
cpu: 1000m
outputs:
artifacts:
- name: model
path: /home/anaconda/model.joblib
archive:
none: {}
s3:
endpoint: s3.amazonaws.com
bucket: evans-argo-artifacts
key: model.joblib
accessKeySecret:
name: aws
key: access-key
secretKeySecret:
name: aws
key: secret-key