-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbenchmark.yaml
137 lines (137 loc) · 3.76 KB
/
benchmark.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
workflow:
files:
inputs:
- "code/analyze.py"
- "code/helloworld.py"
- "data/names.txt"
outputs:
- "results/greetings.txt"
- "results/analytics.json"
parameters:
inputfile: "data/names.txt"
outputfile: "results/greetings.txt"
sleeptime: $[[sleeptime]]
greeting: $[[greeting]]
steps:
- name: "say_hello"
files:
inputs:
- "code/helloworld.py"
- "data/names.txt"
outputs:
- "results/greetings.txt"
action:
environment: "python:3.7"
commands:
- ${python} code/helloworld.py
--inputfile "${inputfile}"
--outputfile "${outputfile}"
--sleeptime ${sleeptime}
--greeting "${greeting}"
- name: "analyze"
files:
inputs:
- "code/analyze.py"
- "results/greetings.txt"
outputs:
- "results/analytics.json"
action:
environment: "python:3.7"
commands:
- ${python} code/analyze.py
--inputfile "${outputfile}"
--outputfile results/analytics.json
outputs:
- source: "results/greetings.txt"
title: "Saying Hello to ..."
caption: "Greetings for all persons."
format:
type: "plaintext"
- source: "results/analytics.json"
title: "Score"
format:
type: "json"
parameters:
- name: "names"
label: "Names File"
dtype: "file"
target: "data/names.txt"
- name: "sleeptime"
label: "Sleep for (sec.)"
dtype: "float"
defaultValue: 10
- name: "greeting"
label: "Greeting"
dtype: "string"
defaultValue: "Hello"
postproc:
workflow:
files:
inputs:
- "code/postproc.py"
- "code/ngrams.py"
- "runs/"
outputs:
- "results/compare.json"
- "results/ngrams.csv"
parameters:
rundir: "runs/"
steps:
- name: "postproc"
files:
inputs:
- "code/postproc.py"
- "code/ngrams.py"
- "runs/"
outputs:
- "results/compare.json"
- "results/ngrams.csv"
action:
environment: "python:3.7"
commands:
- ${python} code/ngrams.py
--runs "${rundir}"
--outputfile results/ngrams.csv
- ${python} code/postproc.py
--runs "${rundir}"
--outputfile results/compare.json
inputs:
files:
- "results/greetings.txt"
- "results/analytics.json"
runs: "runs/"
outputs:
- source: "results/ngrams.csv"
title: "Top-25 3-grams"
caption: "Histogram of the 25 most frequent 3-grams over all submission."
format:
type: "csv"
header: false
columns:
- "3-gram"
- "Count"
- source: "results/compare.json"
title: "Comparison Results"
caption: "Results summarizing the scores for different runs."
results:
file: "results/analytics.json"
schema:
- name: "ngrams"
label: "Number of 3-grams"
dtype: "int"
required: False
- name: "linecount"
label: "Number of lines"
dtype: "int"
required: False
- name: "score"
label: "Score"
dtype: "float"
required: True
orderBy:
- name: "score"
sortDesc: true
- name: "ngrams"
sortDesc: true
- name: "linecount"
sortDesc: false