-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.sh
More file actions
22 lines (17 loc) · 669 Bytes
/
init.sh
File metadata and controls
22 lines (17 loc) · 669 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
set -eou pipefail
IFS=$'\n\t'
shards=$1
if [[ ! -d "containers/${shards}" ]] ; then
mkdir "containers/${shards}"
mkdir "containers/${shards}/cache"
mkdir "containers/${shards}/times"
mkdir "containers/${shards}/outputs"
echo 0 > "containers/${shards}/times/null.time"
fi
python distribution.py --shards "${shards}" --distribution uniform --container "${shards}" --dataset datasets/purchase/datasetfile --label 0
for j in {1..2492}; do
r=$((${j}*${shards}/5))
#r =$(5)
python distribution.py --requests "${r}" --distribution uniform --container "${shards}" --dataset datasets/purchase/datasetfile --label "${r}"
done