github.com/pachyderm/pachyderm@v1.13.4/examples/transactions/model.json (about) 1 { 2 "pipeline": { 3 "name": "model" 4 }, 5 "description": "A pipeline that trains the model for each combinataion of C and Gamma parameters.", 6 "transform": { 7 "image": "pachyderm/iris-train:python-svm-adj-c-gamma", 8 "cmd": [ "/bin/ash" ], 9 "stdin": [ 10 "cp /pfs/raw_data/iris.csv /tmp/iris.csv", 11 "for cf in /pfs/c-parameters/c_parameters.txt/*", 12 "do", 13 "for gf in /pfs/gamma-parameters/gamma_parameters.txt/*", 14 "do", 15 "cparam=`cat $cf`", 16 "gammaparam=`cat $gf`", 17 "python /code/pytrain.py /tmp/ /pfs/out/ $cparam $gammaparam", 18 "done", 19 "done" 20 ] 21 }, 22 "parallelism_spec": { 23 "constant": "1" 24 }, 25 "input": { 26 "cross": [ 27 { 28 "pfs": { 29 "repo": "raw_data", 30 "glob": "/iris.csv" 31 } 32 }, 33 { 34 "pfs": { 35 "name": "c-parameters", 36 "repo": "parameters", 37 "glob": "/c_parameters.txt/*" 38 } 39 }, 40 { 41 "pfs": { 42 "name": "gamma-parameters", 43 "repo": "parameters", 44 "glob": "/gamma_parameters.txt/*" 45 } 46 } 47 ] 48 } 49 }