getting-started/gopher-run: clean up training comments
@@ -27,13 +27,13 @@ DATASET_NAME="playerdata"
ALGORITHM="linear"
MODEL_TYPE="classification"
MODEL_NAME="${DATASET_NAME}_${ALGORITHM}_${MODEL_TYPE}"
-# Not unique, so newer versions override older ones
+# Constant, so newer models override older ones and the deployed model won't need different directory
JOB_DIR="gs://${BUCKET_NAME}/algorithms_training/${MODEL_NAME}/"
FRAMEWORK="XGBOOST"
while true; do
DATE="$(date '+%Y%m%d_%H%M%S')"
-
+ # Include date so JOB_ID is unique
JOB_ID="${MODEL_NAME}_${DATE}"
gcloud beta ai-platform jobs submit training $JOB_ID \
--master-image-uri=$IMAGE_URI --scale-tier=BASIC --job-dir=$JOB_DIR \
@@ -49,6 +49,7 @@ while true; do
--python-version=2.7
gcloud ai-platform versions set-default ${VERSION_NAME} --model=${MODEL_NAME}
+ # Repeate every 30 minutes
sleep 1800
done
