github.com/pachyderm/pachyderm@v1.13.4/examples/ml/hyperparameter/test.json (about)

     1  {
     2    "pipeline": {
     3      "name": "test"
     4    },
     5    "description": "A pipeline that scores each of the trained models.",
     6    "transform": {
     7      "image": "pachyderm/iris-evaluate",
     8      "cmd": [ "/bin/ash" ],
     9      "stdin": [
    10        "for f in /pfs/model/*",
    11        "do",
    12        "filename=$(basename \"$f\")",
    13        "extension=`echo $filename | tail -c 4`",
    14        "if [ \"$extension\" == \"pkl\" ]",
    15        "then",
    16        "python3 /code/evaluate.py $f /pfs/split/test.csv /pfs/out/",
    17        "fi",
    18        "done"
    19      ]
    20    },
    21    "parallelism_spec": {
    22      "constant": "1"
    23    },
    24    "input": {
    25      "cross": [
    26        {
    27          "pfs": {
    28            "repo": "split",
    29            "glob": "/test.csv"
    30          }
    31        },
    32        {
    33          "pfs": {
    34            "repo": "model",
    35            "glob": "/*"
    36          }
    37        }
    38      ]
    39    }
    40  }