-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path4-run-af-in-pipeline.sh
executable file
·28 lines (25 loc) · 1.05 KB
/
4-run-af-in-pipeline.sh
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
#!/bin/bash
# -*- compile-command: "./4-run-af-in-pipeline.sh"; -*-
set -e
D3M_DIR=$(pwd)/out
[ -d "$D3M_DIR" ]
DATA=/mnt/datasets/training_datasets/seed_datasets_archive
SET=185_baseball
PRIM=classification.logistic_regression.ArrayFire
PIPELINE=d1523250-1597-4f71-bebf-738cb6e58217.json
PIPEPATH=/mnt/d3m-arrayfire-primitives/pipelines/$PRIM/$PIPELINE
docker run \
--rm \
-v $D3M_DIR:/mnt \
arrayfire-d3m \
/bin/bash -c \
"mkdir -p /mnt/pipeline-outputs && python3.6 -m d3m \
runtime \
fit-score \
--problem $DATA/$SET/${SET}_problem/problemDoc.json \
--input $DATA/$SET/TRAIN/dataset_TRAIN/datasetDoc.json \
--test-input $DATA/$SET/TEST/dataset_TEST/datasetDoc.json \
--score-input $DATA/$SET/SCORE/dataset_TEST/datasetDoc.json \
--pipeline $PIPEPATH \
--output /mnt/pipeline-outputs/predictions.csv \
--output-run /mnt/pipeline-outputs/run.yml"