-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yaml
59 lines (59 loc) · 1.45 KB
/
template.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
workflow:
version: 0.3.0
inputs:
files:
- $[[code]]
- code/analyze.py
- data/sequences.txt
- data/gt.txt
parameters:
codefile: code/predict.py
inputfile: data/sequences.txt
gtfile: data/gt.txt
outputfile: results/predict.txt
workflow:
type: serial
specification:
steps:
- environment: $[[environ]]
commands:
- $[[command]]
- python code/analyze.py
--resultfile "${outputfile}"
--gtfile "${gtfile}"
--outputfile results/analytics.json
outputs:
files:
- results/predict.txt
- results/analytics.json
parameters:
- id: 'code'
name: 'Code file'
datatype: 'file'
defaultValue: 'code/predict.py'
as: '$input'
index: 2
- id: 'environ'
name: 'Environment'
datatype: 'string'
defaultValue: 'python:3.7'
index: 0
- id: 'command'
name: 'Command'
datatype: 'string'
defaultValue: 'python code/predict.py -i "${inputfile}" -o "${outputfile}"'
index: 1
results:
file: results/analytics.json
schema:
- id: avg_diff
name: 'Deviation'
type: decimal
- id: exact_match
name: 'Exact Predictions'
type: int
orderBy:
- id: avg_diff
sortDesc: false
- id: exact_match
sortDesc: true